[PATCH]
Subsystems (3)
PATCH 1/1 [PATCH]
Hi Dave,
We should also filter vlan-tagged IP/ARP traffic even if the vlan code isn't compiled into the kernel. The patch below removes an unnecessary dependence on the vlan code being compiled.
cheers,
Bart
include/linux/netfilter_bridge.h renamed from include/linux/netfilter_bridge.h.earlier +1 -4
@@ -71,12 +71,10 @@ static inlinevoid nf_bridge_maybe_copy_header (struct sk_buff *skb) {if (skb->nf_bridge) { -#if defined(CONFIG_VLAN_8021Q ) || defined(CONFIG_VLAN_8021Q_MODULE )if (skb->protocol ==__constant_htons (ETH_P_8021Q )) {memcpy (skb->data -18 , skb->nf_bridge->data,18 );skb_push (skb,4 ); }else -#endif memcpy (skb->data -16 , skb->nf_bridge->data,16 ); } }
@@ -86,10 +84,9 @@ void nf_bridge_save_header(struct sk_buf {int header_size =16 ; -#if defined(CONFIG_VLAN_8021Q ) || defined(CONFIG_VLAN_8021Q_MODULE )if (skb->protocol ==__constant_htons (ETH_P_8021Q )) header_size =18 ; -#endif +memcpy (skb->nf_bridge->data, skb->data - header_size, header_size); }
David S. Miller
AppliedRe: [PATCH] Always copy and save the vlan header in bridge-nf
Quoted 3 lines · On Sat, 27 Dec 2003 14:50:18 +0100 Bart De Schuymer <[email protected]> wrote:
We should also filter vlan-tagged IP/ARP traffic even if the vlan code isn't compiled into the kernel. The patch below removes an unnecessary dependence on the vlan code being compiled.
Applied, thanks Bart.