]> git.baikalelectronics.ru Git - kernel.git/commit
net/ipv6: Refactor gateway validation on route add
authorDavid Ahern <dsahern@gmail.com>
Tue, 13 Mar 2018 15:29:36 +0000 (08:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Mar 2018 15:28:38 +0000 (11:28 -0400)
commit2cf9c89204400025bebc2a3745ae51e07d2cca0c
tree41951174608811699e9d05b3f3edf806f810fb70
parentccead6e3f6893df70e03c992fbdd0fba9197d8c3
net/ipv6: Refactor gateway validation on route add

Move gateway validation code from ip6_route_info_create into
ip6_validate_gw. Code move plus adjustments to handle the potential
reset of dev and idev and to make checkpatch happy.

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