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@xxxxxxxxxxxxx]
Sent: Tuesday, July 26, 2005 12:59 PM
To: Simon Barber
Cc: netdev@xxxxxxxxxxx
Subject: Re: Why is packet socket checked before bridge in
netif_receive_skb?
From: "Simon Barber" <simon@xxxxxxxxxxxxxxx>
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.
|