Skip to content

Commit

Permalink
ipv6: fix backtracking for throw routes
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Steven Barth authored and davem330 committed Mar 20, 2015
1 parent 87f966d commit 73ba57b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/ipv6/fib6_rules.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,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:
Expand Down

0 comments on commit 73ba57b

Please sign in to comment.