From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bart De Schuymer Subject: Re: [Bridge] Bridge and PACKET-socket Date: Mon, 12 Jan 2004 22:47:11 +0100 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200401122247.11045.bdschuym@pandora.be> List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luke Gorrie , Jason Lunz Cc: bridge@osdl.org On Monday 12 January 2004 22:02, Luke Gorrie wrote: > Still, I find the current semantics of packet sockets on bridged ports > pretty confusing. It took me a full day to figure out why I wasn't > receiving the packets I wanted, even though tcpdump did. Well, that list for protocol-specific functions contains functions to deal with the packet, e.g. route it. Obviously we don't want these functions to be executed before the bridge code can have a look at it, so that's not very confusing. If you really want to use the protocol-specific list for packets entering on a bridge port, you can. Just use the ebtables brouting chain to "broute" the packet, see the website. I guess you lose a little performance there, but you shouldn't really feel it. cheers, Bart