]> 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)
commit71f937953e60bc98df4e709a9a6cc013568a5090
tree33d38a0628d1bf2925fe1b35620e9232236ab1a9
parentc408f5f88565394b16bc9eaf6a156532b9bc2f08
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