[Devel] [PATCH vz7 2/2] ms/ipv6: fix backtracking for throw routes

Oleg Babin obabin at virtuozzo.com
Mon Mar 26 20:16:59 MSK 2018


From: Steven Barth <cyrus at openwrt.org>

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 at openwrt.org>
Signed-off-by: David S. Miller <davem at davemloft.net>

ms commit 73ba57bfae4a1914f6a6dac71e3168dd900e00af
Signed-off-by: Oleg Babin <obabin at virtuozzo.com>
---
 net/ipv6/fib6_rules.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/ipv6/fib6_rules.c b/net/ipv6/fib6_rules.c
index aad7cd1..8b2e53f 100644
--- a/net/ipv6/fib6_rules.c
+++ b/net/ipv6/fib6_rules.c
@@ -115,6 +115,7 @@ static int fib6_rule_action(struct fib_rule *rule, struct flowi *flp,
 				goto again;
 			flp6->saddr = saddr;
 		}
+		err = rt->dst.error;
 		goto out;
 	}
 again:
-- 
1.8.3.1



More information about the Devel mailing list