]> 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)
commit59b05e886d4aa53d3f64cd8fa2bea5db36927cac
tree2457e16e66036cd52467f4abdf938df45b475aea
parent889bff7e1ba5f7231aaf48a12a9ce582b6e86cd8
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: 9d6e8d441cbd ("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