* [Fwd: [PATCH] allow VLAN interface on top of bridge interface]
@ 2007-04-12 20:54 Chuck Ebbert
2007-04-12 21:01 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Chuck Ebbert @ 2007-04-12 20:54 UTC (permalink / raw)
To: netdev
Date: Thu, 12 Apr 2007 21:50:00 +0200 (CEST)
From: Jerome Borsboom <j.borsboom@erasmusmc.nl>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] allow VLAN interface on top of bridge interface
Message-ID: <Pine.LNX.4.64.0704122136330.3170@knorkaan.xs4all.nl>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Sender: linux-kernel-owner@vger.kernel.org
Precedence: bulk
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] 2+ messages in thread
* Re: [Fwd: [PATCH] allow VLAN interface on top of bridge interface]
2007-04-12 20:54 [Fwd: [PATCH] allow VLAN interface on top of bridge interface] Chuck Ebbert
@ 2007-04-12 21:01 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2007-04-12 21:01 UTC (permalink / raw)
To: cebbert; +Cc: netdev
Chuck, please reply to the poster and instruct them where they should
post the patch _AS WELL AS_ CC:'ing netdev and retaining the
linux-kernel CC, otherwise people will reply to both threads and
someone looking at one of them will not see replies done in the other.
Thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-04-12 21:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-12 20:54 [Fwd: [PATCH] allow VLAN interface on top of bridge interface] Chuck Ebbert
2007-04-12 21:01 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).