projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a16aeb3
)
[IPV6]: Use skb->nh.ipv6h instead of casting skb->nh.raw
author
Arnaldo Carvalho de Melo
<acme@redhat.com>
Sat, 10 Mar 2007 19:21:45 +0000
(16:21 -0300)
committer
David 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
patch
|
blob
|
history
diff --git
a/net/ipv6/exthdrs.c
b/net/ipv6/exthdrs.c
index
bcc4820
..
fce5abd
100644
(file)
--- 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;