net/ipv6: Create a neigh_lookup for FIB entries
authorDavid Ahern <dsahern@gmail.com>
Wed, 18 Apr 2018 00:33:21 +0000 (17:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Apr 2018 03:41:17 +0000 (23:41 -0400)
commitf8a1b43b709d8ef33a8de2f8f35095b4a4413713
tree33d38a0628d1bf2925fe1b35620e9232236ab1a9
parent3b6761d18bc11f2af2a6fc494e9026d39593f22c
net/ipv6: Create a neigh_lookup for FIB entries

The router discovery code has a FIB entry and wants to validate the
gateway has a neighbor entry. Refactor the existing dst_neigh_lookup
for IPv6 and create a new function that takes the gateway and device
and returns a neighbor entry. Use the new function in
ndisc_router_discovery to validate the gateway.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip6_route.h
net/ipv6/ndisc.c
net/ipv6/route.c