]> git.baikalelectronics.ru Git - kernel.git/commit
[VLAN]: Allow VLAN interface on top of bridge interface
authorJerome Borsboom <j.borsboom@erasmusmc.nl>
Fri, 13 Apr 2007 23:12:47 +0000 (16:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Apr 2007 23:12:47 +0000 (16:12 -0700)
commit9fe54d7a92cedcf1b037fd90e59b45e290fdb109
treeab9701560e9cffb927f367fad0b1ddd3b3100259
parentffa8dc62c39c44475e28fd65905f61a852ab0ae6
[VLAN]: Allow VLAN interface on top of bridge interface

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>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan_dev.c