]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit58e354c01b1906b603dcdb28ec35250b09eac625
tree65ebc8f3b280af5bdc609859f3ec880a9beb9af1
parentc861ef83d771362ed0475cd510eb56cf4126ef34
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: fc1e64e1092f ("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