Skip to content

Commit 57effc7

Browse files
acmelDavid S. Miller
authored andcommitted
[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>
1 parent a16aeb3 commit 57effc7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/ipv6/exthdrs.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ static int ipv6_dest_hao(struct sk_buff **skbp, int optoff)
200200
struct sk_buff *skb = *skbp;
201201
struct ipv6_destopt_hao *hao;
202202
struct inet6_skb_parm *opt = IP6CB(skb);
203-
struct ipv6hdr *ipv6h = (struct ipv6hdr *)skb->nh.raw;
203+
struct ipv6hdr *ipv6h = skb->nh.ipv6h;
204204
struct in6_addr tmp_addr;
205205
int ret;
206206

0 commit comments

Comments
 (0)