mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-24 15:42:32 +00:00
[NET]: Correct two mistaken skb_reset_mac_header() conversions.
This operation helper abstracts: skb->mac_header = skb->data; but it was done in two more places which were actually: skb->mac_header = skb->network_header; and those are corrected here. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
1d06916747
commit
c6e6ca712b
2 changed files with 2 additions and 2 deletions
|
@ -56,7 +56,7 @@ int nr_rx_ip(struct sk_buff *skb, struct net_device *dev)
|
|||
|
||||
/* Spoof incoming device */
|
||||
skb->dev = dev;
|
||||
skb_reset_mac_header(skb);
|
||||
skb->mac_header = skb->network_header;
|
||||
skb_reset_network_header(skb);
|
||||
skb->pkt_type = PACKET_HOST;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue