Re: Bind to protocol with AF_PACKET doesn't work for outgoing packets

From: Andi Kleen (ak@suse.de)
Date: Thu Nov 01 2001 - 09:30:42 EST


Joris van Rantwijk <joris@deadlock.et.tudelft.nl> writes:
>
> So... Shouldn't dev_queue_xmit_nit() also process ptype_base then ?

Interesting bug.

It probably should, but unfortunately then it would loop back to all normal
protocols (IP, IPv6, ARP etc.) too, which would not be good.

It may be best to change af_packet to always use ptype_all and match
the protocols itself. Alternatively there would need to be a special
case.

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Nov 07 2001 - 21:00:15 EST