]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipv6: Do not consider link state for nexthop validation
authorDavid Ahern <dsa@cumulusnetworks.com>
Mon, 24 Oct 2016 19:27:23 +0000 (12:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Oct 2016 20:33:12 +0000 (16:33 -0400)
commitc0c11da9166b2af56ceb90ccb54785fc4827c6f1
tree2457e16e66036cd52467f4abdf938df45b475aea
parenta399cb32e1fd27758f7af457444abcecfb5b40d8
net: ipv6: Do not consider link state for nexthop validation

Similar to IPv4, do not consider link state when validating next hops.

Currently, if the link is down default routes can fail to insert:
 $ ip -6 ro add vrf blue default via 2100:2::64 dev eth2
 RTNETLINK answers: No route to host

With this patch the command succeeds.

Fixes: 67d7faed2f24 ("net: ipv6: Use passed in table for nexthop lookups")
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip6_route.h
net/ipv6/route.c