]> git.baikalelectronics.ru Git - kernel.git/commit
net/ipv6: Handle reject routes with onlink flag
authorDavid Ahern <dsahern@gmail.com>
Tue, 6 Feb 2018 20:14:12 +0000 (12:14 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Feb 2018 02:52:06 +0000 (21:52 -0500)
commitb09c6b83e1dc5466819e3a43fb23c98ae0aa32a1
tree65ebc8f3b280af5bdc609859f3ec880a9beb9af1
parent16cc7a6171c9a09bbe1983643aa93f6b9202f472
net/ipv6: Handle reject routes with onlink flag

Verification of nexthops with onlink flag need to handle unreachable
routes. The lookup is only intended to validate the gateway address
is not a local address and if the gateway resolves the egress device
must match the given device. Hence, hitting any default reject route
is ok.

Fixes: 550169ad7e8e ("net/ipv6: Add support for onlink flag")
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c