mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
[IPV6] ROUTE: Routing by Traffic Class.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
This commit is contained in:
parent
e731c248ba
commit
2cc67cc731
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user