aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2006-08-21 06:18:57 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-22 18:17:59 -0400
commit2cc67cc731d9b693a08e781e98fec0e3a6d6ba44 (patch)
treec749d424266ae7f6427495a97da7dc7b3de2446d /net/ipv6
parente731c248ba9e8c7025ae8b4a3fa48e4236b82e52 (diff)
[IPV6] ROUTE: Routing by Traffic Class.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/fib6_rules.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv6/fib6_rules.c b/net/ipv6/fib6_rules.c
index 7b4908cc52b3..91f6233d8efd 100644
--- a/net/ipv6/fib6_rules.c
+++ b/net/ipv6/fib6_rules.c
@@ -121,6 +121,9 @@ static int fib6_rule_match(struct fib_rule *rule, struct flowi *fl, int flags)
121 !ipv6_prefix_equal(&fl->fl6_src, &r->src.addr, r->src.plen)) 121 !ipv6_prefix_equal(&fl->fl6_src, &r->src.addr, r->src.plen))
122 return 0; 122 return 0;
123 123
124 if (r->tclass && r->tclass != ((ntohl(fl->fl6_flowlabel) >> 20) & 0xff))
125 return 0;
126
124 return 1; 127 return 1;
125} 128}
126 129