X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=net%2Fipv6%2Ffib6_rules.c;h=b4d5e1d97c1b2576fc02a15b7a05a773197bb8e0;hb=d76ed22b225c02228c643ae336f76e086fdc32f0;hp=3fd0a578329e523828fc56b40b6ffe217fd850dc;hpb=0eda4020ae53cc057a04ccc802a67f2a5336f8ef;p=deliverable%2Flinux.git 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) 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;