mirror of https://gitee.com/openkylin/linux.git
[TCP]: Use skb_set_mac_header in tcp_collapse
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c51957dafa
commit
31713c333d
|
@ -3633,7 +3633,7 @@ tcp_collapse(struct sock *sk, struct sk_buff_head *list,
|
|||
if (!nskb)
|
||||
return;
|
||||
|
||||
nskb->mac.raw = nskb->data + (skb->mac.raw - skb->head);
|
||||
skb_set_mac_header(nskb, skb->mac.raw - skb->head);
|
||||
nskb->nh.raw = nskb->data + (skb->nh.raw - skb->head);
|
||||
nskb->h.raw = nskb->data + (skb->h.raw - skb->head);
|
||||
|
||||
|
|
Loading…
Reference in New Issue