[SK_BUFF]: Some more layer header conversions
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
0a6114d94b
commit
ddc7b8e32b
@@ -1905,7 +1905,7 @@ struct sk_buff *skb_segment(struct sk_buff *skb, int features)
|
||||
|
||||
skb_reserve(nskb, headroom);
|
||||
skb_reset_mac_header(nskb);
|
||||
nskb->nh.raw = nskb->data + skb->mac_len;
|
||||
skb_set_network_header(nskb, skb->mac_len);
|
||||
nskb->h.raw = nskb->nh.raw + (skb->h.raw - skb->nh.raw);
|
||||
memcpy(skb_put(nskb, doffset), skb->data, doffset);
|
||||
|
||||
|
Reference in New Issue
Block a user