mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-13 14:24:11 +08:00
[VLAN] vlan_dev: Use skb_reset_network_header().
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
afdf27c956
commit
be8bd86321
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user