]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: fix backtracking for throw routes
authorSteven Barth <cyrus@openwrt.org>
Thu, 19 Mar 2015 15:16:04 +0000 (16:16 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Mar 2015 16:57:23 +0000 (12:57 -0400)
commit45bbc2f8f807c0b7551f3855ea32001334f0ddb7
tree2a24af4fd54abf78a7f4fe4c17ed8ec316efa9ba
parent5df9d9e0802cc3dbd210afc2a21bb8bec6588f3b
ipv6: fix backtracking for throw routes

for throw routes to trigger evaluation of other policy rules
EAGAIN needs to be propagated up to fib_rules_lookup
similar to how its done for IPv4

A simple testcase for verification is:

ip -6 rule add lookup 33333 priority 33333
ip -6 route add throw 2001:db8::1
ip -6 route add 2001:db8::1 via fe80::1 dev wlan0 table 33333
ip route get 2001:db8::1

Signed-off-by: Steven Barth <cyrus@openwrt.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/fib6_rules.c