aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ip_output.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/ip_output.c')
-rw-r--r--net/ipv4/ip_output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c
index ddba857bd243..32f1a23a80f9 100644
--- a/net/ipv4/ip_output.c
+++ b/net/ipv4/ip_output.c
@@ -593,7 +593,7 @@ slow_path:
593 ip_copy_metadata(skb2, skb); 593 ip_copy_metadata(skb2, skb);
594 skb_reserve(skb2, ll_rs); 594 skb_reserve(skb2, ll_rs);
595 skb_put(skb2, len + hlen); 595 skb_put(skb2, len + hlen);
596 skb2->nh.raw = skb2->data; 596 skb_reset_network_header(skb2);
597 skb2->h.raw = skb2->data + hlen; 597 skb2->h.raw = skb2->data + hlen;
598 598
599 /* 599 /*
@@ -722,7 +722,7 @@ static inline int ip_ufo_append_data(struct sock *sk,
722 skb_put(skb,fragheaderlen + transhdrlen); 722 skb_put(skb,fragheaderlen + transhdrlen);
723 723
724 /* initialize network header pointer */ 724 /* initialize network header pointer */
725 skb->nh.raw = skb->data; 725 skb_reset_network_header(skb);
726 726
727 /* initialize protocol header pointer */ 727 /* initialize protocol header pointer */
728 skb->h.raw = skb->data + fragheaderlen; 728 skb->h.raw = skb->data + fragheaderlen;