Skip to content

Commit

Permalink
[IPV6]: Use skb->nh.ipv6h instead of casting skb->nh.raw
Browse files Browse the repository at this point in the history
nh.ipv6h is there exactly for this reason! Use it while it exists ;-)

Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
acmel authored and David S. Miller committed Apr 26, 2007
1 parent a16aeb3 commit 57effc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv6/exthdrs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 57effc7

Please sign in to comment.