+ allow-vlan-interface-on-top-of-bridge-interface.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     allow VLAN interface on top of bridge interface
has been added to the -mm tree.  Its filename is
     allow-vlan-interface-on-top-of-bridge-interface.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: allow VLAN interface on top of bridge interface
From: Jerome Borsboom <j.borsboom@xxxxxxxxxxxx>

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@xxxxxxxxxxxx>
Cc: Ben Greear <greearb@xxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 net/8021q/vlan_dev.c |    3 +++
 1 files changed, 3 insertions(+)

diff -puN net/8021q/vlan_dev.c~allow-vlan-interface-on-top-of-bridge-interface net/8021q/vlan_dev.c
--- a/net/8021q/vlan_dev.c~allow-vlan-interface-on-top-of-bridge-interface
+++ a/net/8021q/vlan_dev.c
@@ -380,6 +380,9 @@ int vlan_dev_hard_header(struct sk_buff 
 		} else {
 			vhdr->h_vlan_encapsulated_proto = htons(len);
 		}
+
+		skb->protocol = htons(ETH_P_8021Q);
+		skb_reset_network_header(skb);
 	}
 
 	/* Before delegating work to the lower layer, enter our MAC-address */
_

Patches currently in -mm which might be from j.borsboom@xxxxxxxxxxxx are

allow-vlan-interface-on-top-of-bridge-interface.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux