RE: Why is packet socket checked before bridge in netif_receive_skb?
From: Simon Barber <hidden>
Date: 2005-08-02 18:30:40
From: Simon Barber <hidden>
Date: 2005-08-02 18:30:40
Ah - OK, so I guess it is an artifact of the reuse of the protocol handler structures that means that some packet sockets see frames before the bridge and others after. I guess this doesn't cause any problems. Simon -----Original Message----- From: David S. Miller [mailto:davem@davemloft.net] Sent: Tuesday, July 26, 2005 12:59 PM To: Simon Barber Cc: netdev@oss.sgi.com Subject: Re: Why is packet socket checked before bridge in netif_receive_skb? From: "Simon Barber" <redacted> Subject: Why is packet socket checked before bridge in netif_receive_skb? Date: Tue, 26 Jul 2005 11:03:17 -0700
The protocol handlers are also used to implement packet sockets. - Why is the all handler checked before the bridge hook?
Because we want packet sniffers to see the packet before the bridging layer decapsulates it.