1
0
Fork 0

[IPV6] ROUTE: Routing by Traffic Class.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
wifi-calibration
YOSHIFUJI Hideaki 2006-08-21 19:18:57 +09:00 committed by David S. Miller
parent e731c248ba
commit 2cc67cc731
1 changed files with 3 additions and 0 deletions

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))
return 0;
if (r->tclass && r->tclass != ((ntohl(fl->fl6_flowlabel) >> 20) & 0xff))
return 0;
return 1;
}