diff options
author | Florian Westphal <fw@strlen.de> | 2015-07-08 23:32:12 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-07-09 15:06:59 -0700 |
commit | 8b58a39846568dcd7d0c98b2fadc25018e59dedf (patch) | |
tree | 3d6a6c7a7fa43ca374991fe79bfe44d34e69b9d3 /net/ipv6/exthdrs.c | |
parent | 7c3d0d67d5ddb2aeb3fdae540a567a56c2831d2a (diff) | |
download | linux-stable-8b58a39846568dcd7d0c98b2fadc25018e59dedf.tar.gz linux-stable-8b58a39846568dcd7d0c98b2fadc25018e59dedf.tar.bz2 linux-stable-8b58a39846568dcd7d0c98b2fadc25018e59dedf.zip |
ipv6: use flag instead of u16 for hop in inet6_skb_parm
Hop was always either 0 or sizeof(struct ipv6hdr).
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/exthdrs.c')
-rw-r--r-- | net/ipv6/exthdrs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/exthdrs.c b/net/ipv6/exthdrs.c index a7bbbe45570b..ce203b0402be 100644 --- a/net/ipv6/exthdrs.c +++ b/net/ipv6/exthdrs.c @@ -632,7 +632,7 @@ int ipv6_parse_hopopts(struct sk_buff *skb) return -1; } - opt->hop = sizeof(struct ipv6hdr); + opt->flags |= IP6SKB_HOPBYHOP; if (ip6_parse_tlv(tlvprochopopt_lst, skb)) { skb->transport_header += (skb_transport_header(skb)[1] + 1) << 3; opt = IP6CB(skb); |