Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2cc67cc7 authored by YOSHIFUJI Hideaki's avatar YOSHIFUJI Hideaki Committed by David S. Miller
Browse files

[IPV6] ROUTE: Routing by Traffic Class.

parent e731c248
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -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;
}
}