From bfc565e50a80984a9d49642ed4d6c44ceb764641 Mon Sep 17 00:00:00 2001 From: YOSHIFUJI Hideaki Date: Mon, 21 Aug 2006 19:18:57 +0900 Subject: [PATCH] --- yaml --- r: 34616 b: refs/heads/master c: 2cc67cc731d9b693a08e781e98fec0e3a6d6ba44 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/net/ipv6/fib6_rules.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index cb18bd105731..669adb774c1d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e731c248ba9e8c7025ae8b4a3fa48e4236b82e52 +refs/heads/master: 2cc67cc731d9b693a08e781e98fec0e3a6d6ba44 diff --git a/trunk/net/ipv6/fib6_rules.c b/trunk/net/ipv6/fib6_rules.c index 7b4908cc52b3..91f6233d8efd 100644 --- a/trunk/net/ipv6/fib6_rules.c +++ b/trunk/net/ipv6/fib6_rules.c @@ -121,6 +121,9 @@ static int fib6_rule_match(struct fib_rule *rule, struct flowi *fl, int flags) !ipv6_prefix_equal(&fl->fl6_src, &r->src.addr, r->src.plen)) return 0; + if (r->tclass && r->tclass != ((ntohl(fl->fl6_flowlabel) >> 20) & 0xff)) + return 0; + return 1; }