diff options
Diffstat (limited to 'net/ipv6/mip6.c')
-rw-r--r-- | net/ipv6/mip6.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv6/mip6.c b/net/ipv6/mip6.c index 6475baca63d2..0e7a60f7393a 100644 --- a/net/ipv6/mip6.c +++ b/net/ipv6/mip6.c | |||
@@ -153,6 +153,7 @@ static int mip6_destopt_output(struct xfrm_state *x, struct sk_buff *skb) | |||
153 | u8 nexthdr; | 153 | u8 nexthdr; |
154 | int len; | 154 | int len; |
155 | 155 | ||
156 | skb_push(skb, -skb_network_offset(skb)); | ||
156 | iph = ipv6_hdr(skb); | 157 | iph = ipv6_hdr(skb); |
157 | iph->payload_len = htons(skb->len - sizeof(*iph)); | 158 | iph->payload_len = htons(skb->len - sizeof(*iph)); |
158 | 159 | ||
@@ -367,6 +368,7 @@ static int mip6_rthdr_output(struct xfrm_state *x, struct sk_buff *skb) | |||
367 | struct rt2_hdr *rt2; | 368 | struct rt2_hdr *rt2; |
368 | u8 nexthdr; | 369 | u8 nexthdr; |
369 | 370 | ||
371 | skb_push(skb, -skb_network_offset(skb)); | ||
370 | iph = ipv6_hdr(skb); | 372 | iph = ipv6_hdr(skb); |
371 | iph->payload_len = htons(skb->len - sizeof(*iph)); | 373 | iph->payload_len = htons(skb->len - sizeof(*iph)); |
372 | 374 | ||