diff options
author | Jaehee Park <jhpark1013@gmail.com> | 2022-07-14 01:40:48 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-07-16 03:55:50 +0200 |
commit | aaa5f515b16b6b3e137779ffb4c9558bb58c1e75 (patch) | |
tree | ed38a6a92803ee96890a6e3661450511019d5859 /net/ipv6/addrconf.c | |
parent | net: ipv4: new arp_accept option to accept garp only if in-network (diff) | |
download | linux-aaa5f515b16b6b3e137779ffb4c9558bb58c1e75.tar.xz linux-aaa5f515b16b6b3e137779ffb4c9558bb58c1e75.zip |
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>
Diffstat (limited to 'net/ipv6/addrconf.c')
-rw-r--r-- | net/ipv6/addrconf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 88becb037eb6..6ed807b6c647 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c @@ -7042,7 +7042,7 @@ static const struct ctl_table addrconf_sysctl[] = { .data = &ipv6_devconf.accept_untracked_na, .maxlen = sizeof(int), .mode = 0644, - .proc_handler = proc_dointvec_minmax, + .proc_handler = proc_dointvec, .extra1 = (void *)SYSCTL_ZERO, .extra2 = (void *)SYSCTL_ONE, }, |