projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e731c24
)
[IPV6] ROUTE: Routing by Traffic Class.
author
YOSHIFUJI Hideaki
<yoshfuji@linux-ipv6.org>
Mon, 21 Aug 2006 10:18:57 +0000
(19:18 +0900)
committer
David S. Miller
<davem@sunset.davemloft.net>
Fri, 22 Sep 2006 22:17:59 +0000
(15:17 -0700)
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
net/ipv6/fib6_rules.c
patch
|
blob
|
history
diff --git
a/net/ipv6/fib6_rules.c
b/net/ipv6/fib6_rules.c
index
7b4908c
..
91f6233
100644
(file)
--- 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)
!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;
}