Skip to content

Commit

Permalink
[VLAN] vlan_dev: Use skb_reset_network_header().
Browse files Browse the repository at this point in the history
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Apr 26, 2007
1 parent afdf27c commit be8bd86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/8021q/vlan_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit be8bd86

Please sign in to comment.