diff options
-rw-r--r-- | net/ipv6/xfrm6_mode_beet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/xfrm6_mode_beet.c b/net/ipv6/xfrm6_mode_beet.c index 65e6b2a7fb31..d9366dfbf868 100644 --- a/net/ipv6/xfrm6_mode_beet.c +++ b/net/ipv6/xfrm6_mode_beet.c | |||
@@ -44,9 +44,9 @@ static int xfrm6_beet_output(struct xfrm_state *x, struct sk_buff *skb) | |||
44 | hdr_len = ip6_find_1stfragopt(skb, &prevhdr); | 44 | hdr_len = ip6_find_1stfragopt(skb, &prevhdr); |
45 | memmove(skb->data, iph, hdr_len); | 45 | memmove(skb->data, iph, hdr_len); |
46 | 46 | ||
47 | skb_set_mac_header(skb, offsetof(struct ipv6hdr, nexthdr)); | 47 | skb_set_mac_header(skb, (prevhdr - x->props.header_len) - skb->data); |
48 | skb_reset_network_header(skb); | 48 | skb_reset_network_header(skb); |
49 | skb_set_transport_header(skb, sizeof(struct ipv6hdr)); | 49 | skb_set_transport_header(skb, hdr_len); |
50 | top_iph = ipv6_hdr(skb); | 50 | top_iph = ipv6_hdr(skb); |
51 | 51 | ||
52 | ipv6_addr_copy(&top_iph->saddr, (struct in6_addr *)&x->props.saddr); | 52 | ipv6_addr_copy(&top_iph->saddr, (struct in6_addr *)&x->props.saddr); |