Commit 31713c33 authored by Arnaldo Carvalho de Melo's avatar Arnaldo Carvalho de Melo Committed by David S. Miller

[TCP]: Use skb_set_mac_header in tcp_collapse

Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c51957da
...@@ -3633,7 +3633,7 @@ tcp_collapse(struct sock *sk, struct sk_buff_head *list, ...@@ -3633,7 +3633,7 @@ tcp_collapse(struct sock *sk, struct sk_buff_head *list,
if (!nskb) if (!nskb)
return; 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->nh.raw = nskb->data + (skb->nh.raw - skb->head);
nskb->h.raw = nskb->data + (skb->h.raw - skb->head); nskb->h.raw = nskb->data + (skb->h.raw - skb->head);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment