net/ipv6: Introduce accept_unsolicited_na knob to implement router-side changes for...
authorArun Ajith S <aajith@arista.com>
Fri, 15 Apr 2022 08:34:02 +0000 (08:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Apr 2022 12:23:49 +0000 (13:23 +0100)
commitf9a2fb73318eb4dbf8cd84866b8b0dd012d8b116
tree1441aad939fad8f1112d3bfb24eec862e472f0ee
parent0339d25a2807d913f5645b8d5e485640915f9702
net/ipv6: Introduce accept_unsolicited_na knob to implement router-side changes for RFC9131

Add a new neighbour cache entry in STALE state for routers on receiving
an unsolicited (gratuitous) neighbour advertisement with
target link-layer-address option specified.
This is similar to the arp_accept configuration for IPv4.
A new sysctl endpoint is created to turn on this behaviour:
/proc/sys/net/ipv6/conf/interface/accept_unsolicited_na.

Signed-off-by: Arun Ajith S <aajith@arista.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/ip-sysctl.rst
include/linux/ipv6.h
include/uapi/linux/ipv6.h
net/ipv6/addrconf.c
net/ipv6/ndisc.c
tools/testing/selftests/net/Makefile
tools/testing/selftests/net/ndisc_unsolicited_na_test.sh [new file with mode: 0755]