[VLAN] vlan_dev: Use skb_reset_network_header().
authorDavid S. Miller <davem@sunset.davemloft.net>
Fri, 20 Apr 2007 03:34:51 +0000 (20:34 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 26 Apr 2007 05:26:26 +0000 (22:26 -0700)
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan_dev.c

index 42a35bed0881d388c21fc7eb1ef433f44afa9696..7ff6b7948485b29c52765000b25e8ad8b53c2d79 100644 (file)
@@ -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 */