]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/ipv6/esp6.c
[SK_BUFF]: Introduce ipv6_hdr(), remove skb->nh.ipv6h
[net-next-2.6.git] / net / ipv6 / esp6.c
index 6e6b57ac80134062cefa64fa7e16c31e7b200fe4..7aff380e74ef9f9eea0be386b8f420b6783db4e6 100644 (file)
@@ -191,7 +191,7 @@ static int esp6_input(struct xfrm_state *x, struct sk_buff *skb)
        skb->ip_summed = CHECKSUM_NONE;
 
        esph = (struct ipv6_esp_hdr*)skb->data;
-       iph = skb->nh.ipv6h;
+       iph = ipv6_hdr(skb);
 
        /* Get ivec. This can be wrong, check against another impls. */
        if (esp->conf.ivlen)