net/ipv6: Expand and rename accept_unsolicited_na to accept_untracked_na
authorArun Ajith S <aajith@arista.com>
Mon, 30 May 2022 10:14:14 +0000 (10:14 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 31 May 2022 09:36:57 +0000 (11:36 +0200)
commit3e0b8f529c10037ae0b369fc892e524eae5a5485
tree41f7fe4b731d75b6c9ff0b73afd8b7affa56b562
parent4a1f14df55d1e9ecdfa797a87a80131207cbd66f
net/ipv6: Expand and rename accept_unsolicited_na to accept_untracked_na

RFC 9131 changes default behaviour of handling RX of NA messages when the
corresponding entry is absent in the neighbour cache. The current
implementation is limited to accept just unsolicited NAs. However, the
RFC is more generic where it also accepts solicited NAs. Both types
should result in adding a STALE entry for this case.

Expand accept_untracked_na behaviour to also accept solicited NAs to
be compliant with the RFC and rename the sysctl knob to
accept_untracked_na.

Fixes: f9a2fb73318e ("net/ipv6: Introduce accept_unsolicited_na knob to implement router-side changes for RFC9131")
Signed-off-by: Arun Ajith S <aajith@arista.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20220530101414.65439-1-aajith@arista.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
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/ndisc_unsolicited_na_test.sh