From: Arnaldo Carvalho de Melo Date: Sat, 10 Mar 2007 19:21:45 +0000 (-0300) Subject: [IPV6]: Use skb->nh.ipv6h instead of casting skb->nh.raw X-Git-Tag: Ubuntu-5.2.0-15.16~45538^2~348 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=57effc70a5be9f7804e9a99964eb7265367effca;p=mirror_ubuntu-eoan-kernel.git [IPV6]: Use skb->nh.ipv6h instead of casting skb->nh.raw nh.ipv6h is there exactly for this reason! Use it while it exists ;-) Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: David S. Miller --- diff --git a/net/ipv6/exthdrs.c b/net/ipv6/exthdrs.c index bcc4820baa78..fce5abde554f 100644 --- a/net/ipv6/exthdrs.c +++ b/net/ipv6/exthdrs.c @@ -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;