]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Nov 2016 06:48:53 +0000 (07:48 +0100)
commitd46b19687feca220e933f8d92844151154a51775
treebf8d97140485865a99e04595bebefe3975ad6f66
parenteb77db88ea11e334816ceb5a537d775c1fc3fb72
net: ipv6: Do not consider link state for nexthop validation

[ Upstream commit d5d32e4b76687f4df9ad3ba8d3702b7347f51fa6 ]

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: 8c14586fc320 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/net/ip6_route.h
net/ipv6/route.c