| To: | Bart De Schuymer <bdschuym@xxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH][BRIDGE-NF] Fix wrong use of skb->protocol |
| From: | Lennert Buytenhek <buytenh@xxxxxxxxxxxxxx> |
| Date: | Thu, 30 Dec 2004 23:24:15 +0100 |
| Cc: | "David S. Miller" <davem@xxxxxxxxxxxxx>, netdev@xxxxxxxxxxx, snort2004@xxxxxxx |
| In-reply-to: | <1104432914.15601.19.camel@localhost.localdomain> |
| References: | <1104432914.15601.19.camel@localhost.localdomain> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.4.1i |
On Thu, Dec 30, 2004 at 07:55:14PM +0100, Bart De Schuymer wrote: > ip_sabotage_out() needs to distinguish IPv4 and IPv6 traffic. It > currently does that by looking at skb->protocol. However, for locally > originated packets, skb->protocol is not initialized. > The patch below instead looks at the version number of the packet's > data, which should be 4 or 6. A while ago there were a number of problems with bridging CIPE ethernet devices, which turned out to be the bridge code not initialising skb->protocol for locally originated STP frames. At the time I was told that initialising skb->protocol for locally originated packets is required, so that is how I fixed it then. cheers, Lennert |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH PKT_SCHED 0/17]: tc action cleanup + fixes, Arnaldo Carvalho de Melo |
|---|---|
| Next by Date: | Re: [PATCH][BRIDGE-NF] Fix wrong use of skb->protocol, Bart De Schuymer |
| Previous by Thread: | [PATCH][BRIDGE-NF] Fix wrong use of skb->protocol, Bart De Schuymer |
| Next by Thread: | Re: [PATCH][BRIDGE-NF] Fix wrong use of skb->protocol, Bart De Schuymer |
| Indexes: | [Date] [Thread] [Top] [All Lists] |