From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <45E6802C.2090708@linux-foundation.org> Date: Wed, 28 Feb 2007 23:26:36 -0800 From: Stephen Hemminger MIME-Version: 1.0 References: <20070228195611.24cf19ee@deepthought> <45E650F6.4030404@candelatech.com> <45E67B04.2060702@linux-foundation.org> <20070228.232224.74746939.davem@davemloft.net> In-Reply-To: <20070228.232224.74746939.davem@davemloft.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Bridge] [PATCH] bridge: avoid ptype_all packet handling List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Miller Cc: netdev@vger.kernel.org, greearb@candelatech.com, bridge@linux-foundation.org David Miller wrote: > From: Stephen Hemminger > 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.