Commit ac1eabca authored by Florent Fourcot's avatar Florent Fourcot Committed by David S. Miller

ipv6: use ip6_flowinfo helper

Signed-off-by: default avatarFlorent Fourcot <florent.fourcot@enst-bretagne.fr>
Reviewed-by: default avatarHannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3308de2b
...@@ -683,8 +683,7 @@ bool ipv6_opt_accepted(const struct sock *sk, const struct sk_buff *skb) ...@@ -683,8 +683,7 @@ bool ipv6_opt_accepted(const struct sock *sk, const struct sk_buff *skb)
if (np->rxopt.all) { if (np->rxopt.all) {
if ((opt->hop && (np->rxopt.bits.hopopts || if ((opt->hop && (np->rxopt.bits.hopopts ||
np->rxopt.bits.ohopopts)) || np->rxopt.bits.ohopopts)) ||
((IPV6_FLOWINFO_MASK & (ip6_flowinfo((struct ipv6hdr *) skb_network_header(skb)) &&
*(__be32 *)skb_network_header(skb)) &&
np->rxopt.bits.rxflow) || np->rxopt.bits.rxflow) ||
(opt->srcrt && (np->rxopt.bits.srcrt || (opt->srcrt && (np->rxopt.bits.srcrt ||
np->rxopt.bits.osrcrt)) || np->rxopt.bits.osrcrt)) ||
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment