diff options
Diffstat (limited to 'net/ipv6/xfrm6_policy.c')
-rw-r--r-- | net/ipv6/xfrm6_policy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/xfrm6_policy.c b/net/ipv6/xfrm6_policy.c index b93bfb87f494..ef746d4f3131 100644 --- a/net/ipv6/xfrm6_policy.c +++ b/net/ipv6/xfrm6_policy.c | |||
@@ -270,7 +270,7 @@ error: | |||
270 | static inline void | 270 | static inline void |
271 | _decode_session6(struct sk_buff *skb, struct flowi *fl) | 271 | _decode_session6(struct sk_buff *skb, struct flowi *fl) |
272 | { | 272 | { |
273 | u16 offset = skb->h.raw - skb->nh.raw; | 273 | u16 offset = skb_network_header_len(skb); |
274 | struct ipv6hdr *hdr = ipv6_hdr(skb); | 274 | struct ipv6hdr *hdr = ipv6_hdr(skb); |
275 | struct ipv6_opt_hdr *exthdr; | 275 | struct ipv6_opt_hdr *exthdr; |
276 | const unsigned char *nh = skb_network_header(skb); | 276 | const unsigned char *nh = skb_network_header(skb); |