* [PATCH] allow VLAN interface on top of bridge interface
@ 2007-04-12 19:50 Jerome Borsboom
2007-04-13 23:11 ` David Miller
2007-04-13 23:13 ` David Miller
0 siblings, 2 replies; 3+ messages in thread
From: Jerome Borsboom @ 2007-04-12 19:50 UTC (permalink / raw)
To: linux-kernel
When a VLAN interface is created on top of a bridge interface and
netfilter is enabled to see the bridged packets, the packets can be
corrupted when passing through the netfilter code. This is caused by the
VLAN driver not setting the 'protocol' and 'nh' members of the sk_buff
structure. In general, this is no problem as the VLAN interface is mostly
connected to a physical ethernet interface which does not use the
'protocol' and 'nh' members. For a bridge interface, however, these
members do matter.
Signed-off-by: Jerome Borsboom <j.borsboom@erasmusmc.nl>
--- linux-2.6.20/net/8021q/vlan_dev.c 2007-02-04 19:44:54.000000000 +0100
+++ linux-2.6.20/net/8021q/vlan_dev.c 2007-04-12 21:12:17.000000000 +0200
@@ -380,6 +380,9 @@
} else {
vhdr->h_vlan_encapsulated_proto = htons(len);
}
+
+ skb->protocol = htons(ETH_P_8021Q);
+ skb->nh.raw = skb->data;
}
/* Before delegating work to the lower layer, enter our MAC-address */
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] allow VLAN interface on top of bridge interface
2007-04-12 19:50 [PATCH] allow VLAN interface on top of bridge interface Jerome Borsboom
@ 2007-04-13 23:11 ` David Miller
2007-04-13 23:13 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2007-04-13 23:11 UTC (permalink / raw)
To: j.borsboom; +Cc: linux-kernel
From: Jerome Borsboom <j.borsboom@erasmusmc.nl>
Date: Thu, 12 Apr 2007 21:50:00 +0200 (CEST)
> When a VLAN interface is created on top of a bridge interface and
> netfilter is enabled to see the bridged packets, the packets can be
> corrupted when passing through the netfilter code. This is caused by the
> VLAN driver not setting the 'protocol' and 'nh' members of the sk_buff
> structure. In general, this is no problem as the VLAN interface is mostly
> connected to a physical ethernet interface which does not use the
> 'protocol' and 'nh' members. For a bridge interface, however, these
> members do matter.
>
> Signed-off-by: Jerome Borsboom <j.borsboom@erasmusmc.nl>
I'll apply this, thanks a lot Jerome.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] allow VLAN interface on top of bridge interface
2007-04-12 19:50 [PATCH] allow VLAN interface on top of bridge interface Jerome Borsboom
2007-04-13 23:11 ` David Miller
@ 2007-04-13 23:13 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2007-04-13 23:13 UTC (permalink / raw)
To: j.borsboom; +Cc: linux-kernel
Jerome, btw, in the future please fix your email client.
It added extra spaces and also deleted some in the patch,
making the patch not apply without a lot of hand-editing.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-04-13 23:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-12 19:50 [PATCH] allow VLAN interface on top of bridge interface Jerome Borsboom
2007-04-13 23:11 ` David Miller
2007-04-13 23:13 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®