aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/fib6_rules.c
diff options
context:
space:
mode:
authorLi RongQing <roy.qing.li@gmail.com>2014-01-15 04:03:30 -0500
committerDavid S. Miller <davem@davemloft.net>2014-01-15 18:53:18 -0500
commitd76ed22b225c02228c643ae336f76e086fdc32f0 (patch)
treee420a54624555e185458c2d8a443820ef9a276e5 /net/ipv6/fib6_rules.c
parente96a41ebde3b66dbb59d3ffa0a38dff6e5ca25a9 (diff)
ipv6: move IPV6_TCLASS_SHIFT into ipv6.h and define a helper
Two places defined IPV6_TCLASS_SHIFT, so we should move it into ipv6.h, and use this macro as possible. And define ip6_tclass helper to return tclass Signed-off-by: Li RongQing <roy.qing.li@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/fib6_rules.c')
-rw-r--r--net/ipv6/fib6_rules.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/fib6_rules.c b/net/ipv6/fib6_rules.c
index 3fd0a578329e..b4d5e1d97c1b 100644
--- a/net/ipv6/fib6_rules.c
+++ b/net/ipv6/fib6_rules.c
@@ -169,7 +169,7 @@ static int fib6_rule_match(struct fib_rule *rule, struct flowi *fl, int flags)
169 return 0; 169 return 0;
170 } 170 }
171 171
172 if (r->tclass && r->tclass != ((ntohl(fl6->flowlabel) >> 20) & 0xff)) 172 if (r->tclass && r->tclass != ip6_tclass(fl6->flowlabel))
173 return 0; 173 return 0;
174 174
175 return 1; 175 return 1;