ipv6: move IPV6_TCLASS_SHIFT into ipv6.h and define a helper
[deliverable/linux.git] / net / ipv6 / fib6_rules.c
index 3fd0a578329e523828fc56b40b6ffe217fd850dc..b4d5e1d97c1b2576fc02a15b7a05a773197bb8e0 100644 (file)
@@ -169,7 +169,7 @@ static int fib6_rule_match(struct fib_rule *rule, struct flowi *fl, int flags)
                        return 0;
        }
 
-       if (r->tclass && r->tclass != ((ntohl(fl6->flowlabel) >> 20) & 0xff))
+       if (r->tclass && r->tclass != ip6_tclass(fl6->flowlabel))
                return 0;
 
        return 1;
This page took 0.027463 seconds and 5 git commands to generate.