[IPV6]: Use skb->nh.ipv6h instead of casting skb->nh.raw
authorArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 10 Mar 2007 19:21:45 +0000 (16:21 -0300)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 26 Apr 2007 05:24:45 +0000 (22:24 -0700)
nh.ipv6h is there exactly for this reason! Use it while it exists ;-)

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/exthdrs.c

index bcc4820..fce5abd 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;