]> git.baikalelectronics.ru Git - kernel.git/commit
net/ipv6: Add support for onlink flag
authorDavid Ahern <dsahern@gmail.com>
Fri, 26 Jan 2018 00:55:09 +0000 (16:55 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Jan 2018 15:16:43 +0000 (10:16 -0500)
commitbf366c3706a7555d84843e861f21382319b934c2
tree93f66e07468c2458e7c0316873f0ff6e96f84502
parent8627075a96ec8cfab83c3ddfd298c5fb6553ff4b
net/ipv6: Add support for onlink flag

Similar to IPv4 allow routes to be added with the RTNH_F_ONLINK flag.
The onlink option requires a gateway and a nexthop device. Any unicast
gateway is allowed (including IPv4 mapped addresses and unresolved
ones) as long as the gateway is not a local address and if it resolves
it must match the given device.

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