[IPV6] ROUTE: Routing by Traffic Class.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
This commit is contained in:
YOSHIFUJI Hideaki 2006-08-21 19:18:57 +09:00 committed by David S. Miller
parent e731c248ba
commit 2cc67cc731

View File

@ -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)) !ipv6_prefix_equal(&fl->fl6_src, &r->src.addr, r->src.plen))
return 0; return 0;
if (r->tclass && r->tclass != ((ntohl(fl->fl6_flowlabel) >> 20) & 0xff))
return 0;
return 1; return 1;
} }