ipv6: Handle all fib6_nh in a nexthop in __ip6_route_redirect
authorDavid Ahern <dsahern@gmail.com>
Sat, 8 Jun 2019 21:53:29 +0000 (14:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Jun 2019 17:44:56 +0000 (10:44 -0700)
commitc55c89884d3d0686aa8b6ec7525c2561383e9490
tree369123281b1a1df100b4d5d0c171d304b507453c
parente659ba31d806fbb523a2b78f092bfe9708f2a121
ipv6: Handle all fib6_nh in a nexthop in __ip6_route_redirect

Add a hook in __ip6_route_redirect to handle a nexthop struct in a
fib6_info. Use nexthop_for_each_fib6_nh and fib6_nh_redirect_match
to call ip6_redirect_nh_match for each fib6_nh looking for a match.

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