OSDN Git Service

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)
commitaaa5f515b16b6b3e137779ffb4c9558bb58c1e75
treeed38a6a92803ee96890a6e3661450511019d5859
parente68c5dcf0aacc48a23cedcb3ce81b8c60837f48c
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