]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipv6: add socket option IPV6_ROUTER_ALERT_ISOLATE
authorFrancesco Ruggeri <fruggeri@arista.com>
Fri, 1 Mar 2019 23:31:03 +0000 (15:31 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Mar 2019 05:05:10 +0000 (21:05 -0800)
commit1abeb6cb756d547ef94e21724454ff8122e7f70d
treeb9e330a8e765941112abcccfe48d968eca75bd4d
parent1ed9e4b76d5fdcaf324fa8f7a7f00f3e15377d97
net: ipv6: add socket option IPV6_ROUTER_ALERT_ISOLATE

By default IPv6 socket with IPV6_ROUTER_ALERT socket option set will
receive all IPv6 RA packets from all namespaces.
IPV6_ROUTER_ALERT_ISOLATE socket option restricts packets received by
the socket to be only from the socket's namespace.

Signed-off-by: Maxim Martynov <maxim@arista.com>
Signed-off-by: Francesco Ruggeri <fruggeri@arista.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/ipv6.h
include/uapi/linux/in6.h
net/ipv6/ip6_output.c
net/ipv6/ipv6_sockglue.c