]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipv6: new accept_untracked_na option to accept na only if in-network
authorJaehee Park <jhpark1013@gmail.com>
Wed, 13 Jul 2022 23:40:48 +0000 (16:40 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 16 Jul 2022 01:55:50 +0000 (18:55 -0700)
commitc730420a1adc834a0534a98abafc271b780022f1
treeed38a6a92803ee96890a6e3661450511019d5859
parent91c9ba7035531e87006e1bf38d477d95e3dcd7ce
net: ipv6: new accept_untracked_na option to accept na only if in-network

This patch adds a third knob, '2', which extends the
accept_untracked_na option to learn a neighbor only if the src ip is
in the same subnet as an address configured on the interface that
received the neighbor advertisement. This is similar to the arp_accept
configuration for ipv4.

Signed-off-by: Jaehee Park <jhpark1013@gmail.com>
Suggested-by: Roopa Prabhu <roopa@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/networking/ip-sysctl.rst
net/ipv6/addrconf.c
net/ipv6/ndisc.c