]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit15b8e7f27da41e70aee143da24d8df878e8205cd
tree33d38a0628d1bf2925fe1b35620e9232236ab1a9
parenta10345e7b8c53aa122b2f8f34446e6d10b91f0b1
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