]> Git Repo - linux.git/blobdiff - net/ipv6/xfrm6_tunnel.c
[IPSEC]: Store IPv6 nh pointer in mac_header on output
[linux.git] / net / ipv6 / xfrm6_tunnel.c
index 30f3236c402afd470d7a542d2121e03042a1110c..aeb06076fdd06776eaeae969bcd8e424401553a6 100644 (file)
@@ -244,7 +244,7 @@ static int xfrm6_tunnel_output(struct xfrm_state *x, struct sk_buff *skb)
 {
        struct ipv6hdr *top_iph;
 
-       top_iph = (struct ipv6hdr *)skb->data;
+       top_iph = ipv6_hdr(skb);
        top_iph->payload_len = htons(skb->len - sizeof(struct ipv6hdr));
 
        return 0;
This page took 0.026841 seconds and 4 git commands to generate.