From: David S. Miller Date: Fri, 20 Apr 2007 03:34:51 +0000 (-0700) Subject: [VLAN] vlan_dev: Use skb_reset_network_header(). X-Git-Tag: v2.6.22-rc1~1128^2~259 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be8bd86321fa7f06359d866ef61fb4d2f3e9dce9;p=linux-2.6 [VLAN] vlan_dev: Use skb_reset_network_header(). Signed-off-by: David S. Miller --- diff --git a/net/8021q/vlan_dev.c b/net/8021q/vlan_dev.c index 42a35bed08..7ff6b79484 100644 --- a/net/8021q/vlan_dev.c +++ b/net/8021q/vlan_dev.c @@ -382,7 +382,7 @@ int vlan_dev_hard_header(struct sk_buff *skb, struct net_device *dev, } skb->protocol = htons(ETH_P_8021Q); - skb->nh.raw = skb->data; + skb_reset_network_header(skb); } /* Before delegating work to the lower layer, enter our MAC-address */