[IPV6]: Use skb->nh.ipv6h instead of casting skb->nh.raw
[deliverable/linux.git] / net / ipv6 / exthdrs.c
index bcc4820baa786eab6a418d6c31282cb9b1c58fea..fce5abde554f7826034c6f989ae098bb2a332347 100644 (file)
@@ -200,7 +200,7 @@ static int ipv6_dest_hao(struct sk_buff **skbp, int optoff)
        struct sk_buff *skb = *skbp;
        struct ipv6_destopt_hao *hao;
        struct inet6_skb_parm *opt = IP6CB(skb);
-       struct ipv6hdr *ipv6h = (struct ipv6hdr *)skb->nh.raw;
+       struct ipv6hdr *ipv6h = skb->nh.ipv6h;
        struct in6_addr tmp_addr;
        int ret;
 
This page took 0.029162 seconds and 5 git commands to generate.