]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commiteb8caf45db41ba2e609afd5bed434b0d28b1d24a
tree41f7fe4b731d75b6c9ff0b73afd8b7affa56b562
parentdc983456aa28f171fb1350789433e1a5133d46fa
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: 920b5ae91a69 ("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