]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3432ec359d3c93d12c517c4b390b69b2de18f259
tree30b5af7a5b811f56fde3642c4711539cf48be364
parentbb25757c291ca9ab8809375a5b359b780a5a570c
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