Skip to content

Commit 2cc67cc

Browse files
yoshfujiDavid S. Miller
authored andcommitted
[IPV6] ROUTE: Routing by Traffic Class.
Signed-off-by: YOSHIFUJI Hideaki <[email protected]>
1 parent e731c24 commit 2cc67cc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

net/ipv6/fib6_rules.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ static int fib6_rule_match(struct fib_rule *rule, struct flowi *fl, int flags)
121121
!ipv6_prefix_equal(&fl->fl6_src, &r->src.addr, r->src.plen))
122122
return 0;
123123

124+
if (r->tclass && r->tclass != ((ntohl(fl->fl6_flowlabel) >> 20) & 0xff))
125+
return 0;
126+
124127
return 1;
125128
}
126129

0 commit comments

Comments
 (0)