]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit - net/ipv6/route.c
net/ipv6: Move gateway validation into helper
authorDavid Ahern <dsahern@gmail.com>
Fri, 26 Jan 2018 00:55:07 +0000 (16:55 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Jan 2018 15:16:42 +0000 (10:16 -0500)
commit1edce99fa8d6119d89b3b6e92b6cfa56889b4f3d
tree30b5af7a5b811f56fde3642c4711539cf48be364
parent9515a2e082f91457db0ecff4b65371d0fb5d9aad
net/ipv6: Move gateway validation into helper

Move existing code to validate nexthop into a helper. Follow on patch
adds support for nexthops marked with onlink, and this helper keeps
the complexity of ip6_route_info_create in check.

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