aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2007-03-10 14:21:45 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:24:45 -0400
commit57effc70a5be9f7804e9a99964eb7265367effca (patch)
tree899aba12491095e6eb55291f5032cccab0f9b609
parenta16aeb36239ce612699ed64a75a03c88cbc657e8 (diff)
[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 <acme@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/ipv6/exthdrs.c2
1 files changed, 1 insertions, 1 deletions
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)
200 struct sk_buff *skb = *skbp; 200 struct sk_buff *skb = *skbp;
201 struct ipv6_destopt_hao *hao; 201 struct ipv6_destopt_hao *hao;
202 struct inet6_skb_parm *opt = IP6CB(skb); 202 struct inet6_skb_parm *opt = IP6CB(skb);
203 struct ipv6hdr *ipv6h = (struct ipv6hdr *)skb->nh.raw; 203 struct ipv6hdr *ipv6h = skb->nh.ipv6h;
204 struct in6_addr tmp_addr; 204 struct in6_addr tmp_addr;
205 int ret; 205 int ret;
206 206