diff options
Diffstat (limited to 'net/ipv6/mip6.c')
-rw-r--r-- | net/ipv6/mip6.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/mip6.c b/net/ipv6/mip6.c index f0288e92fb52..6ed763ee6785 100644 --- a/net/ipv6/mip6.c +++ b/net/ipv6/mip6.c | |||
@@ -260,7 +260,7 @@ static int mip6_destopt_offset(struct xfrm_state *x, struct sk_buff *skb, | |||
260 | struct ipv6_opt_hdr *exthdr = | 260 | struct ipv6_opt_hdr *exthdr = |
261 | (struct ipv6_opt_hdr *)(ipv6_hdr(skb) + 1); | 261 | (struct ipv6_opt_hdr *)(ipv6_hdr(skb) + 1); |
262 | const unsigned char *nh = skb_network_header(skb); | 262 | const unsigned char *nh = skb_network_header(skb); |
263 | unsigned int packet_len = skb->tail - nh; | 263 | unsigned int packet_len = skb->tail - skb->network_header; |
264 | int found_rhdr = 0; | 264 | int found_rhdr = 0; |
265 | 265 | ||
266 | *nexthdr = &ipv6_hdr(skb)->nexthdr; | 266 | *nexthdr = &ipv6_hdr(skb)->nexthdr; |
@@ -392,7 +392,7 @@ static int mip6_rthdr_offset(struct xfrm_state *x, struct sk_buff *skb, | |||
392 | struct ipv6_opt_hdr *exthdr = | 392 | struct ipv6_opt_hdr *exthdr = |
393 | (struct ipv6_opt_hdr *)(ipv6_hdr(skb) + 1); | 393 | (struct ipv6_opt_hdr *)(ipv6_hdr(skb) + 1); |
394 | const unsigned char *nh = skb_network_header(skb); | 394 | const unsigned char *nh = skb_network_header(skb); |
395 | unsigned int packet_len = skb->tail - nh; | 395 | unsigned int packet_len = skb->tail - skb->network_header; |
396 | int found_rhdr = 0; | 396 | int found_rhdr = 0; |
397 | 397 | ||
398 | *nexthdr = &ipv6_hdr(skb)->nexthdr; | 398 | *nexthdr = &ipv6_hdr(skb)->nexthdr; |