[Bridge] [PATCH] bridge: avoid ptype_all packet handling

Stephen Hemminger shemminger at linux-foundation.org
Wed Feb 28 23:26:36 PST 2007


David Miller wrote:
> From: Stephen Hemminger <shemminger at linux-foundation.org>
> Date: Wed, 28 Feb 2007 23:04:36 -0800
>
>   
>> If an normal application has to use something like raw packet
>> filtering, it seems there is a missing API.
>>     
>
> I'm loosely following this discussion, but Ben mentions DHCP
> and I remember learning the other month that DHCP uses AF_PACKET
> and filtering instead of IP RAW sockets because it needs to get
> the MAC address and RAW sockets don't provide that.
>   
sounds like a socket option would help, the data is already there. Then 
the normal
UDP receive path would work.



More information about the Bridge mailing list