diff options
author | Jaehee Park <jhpark1013@gmail.com> | 2022-07-13 16:40:48 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-07-15 18:55:50 -0700 |
commit | aaa5f515b16b6b3e137779ffb4c9558bb58c1e75 (patch) | |
tree | ed38a6a92803ee96890a6e3661450511019d5859 /net/ipv6/addrconf.c | |
parent | e68c5dcf0aacc48a23cedcb3ce81b8c60837f48c (diff) | |
download | linux-aaa5f515b16b6b3e137779ffb4c9558bb58c1e75.tar.bz2 |
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, }, |