projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.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
|
blame
|
history
diff --git
a/net/ipv6/exthdrs.c
b/net/ipv6/exthdrs.c
index bcc4820baa786eab6a418d6c31282cb9b1c58fea..fce5abde554f7826034c6f989ae098bb2a332347 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;