]> git.hungrycats.org Git - linux/commit
ipv6: fix backtracking for throw routes
authorSteven Barth <cyrus@openwrt.org>
Thu, 19 Mar 2015 15:16:04 +0000 (16:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2015 12:59:35 +0000 (13:59 +0100)
commit8f1e9a5da7b864ee71a230e9a0d590c65c05079b
treecf1e9a33a745af4ceb7e27425019d1fa8c06c384
parenta0e0c4addb570f6811ade2911f3cc71ee86d9251
ipv6: fix backtracking for throw routes

[ Upstream commit 73ba57bfae4a1914f6a6dac71e3168dd900e00af ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/fib6_rules.c