diff options
author | Jaehee Park <jhpark1013@gmail.com> | 2022-07-13 16:40:47 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-07-15 18:55:49 -0700 |
commit | e68c5dcf0aacc48a23cedcb3ce81b8c60837f48c (patch) | |
tree | c89fddb75cef6e3d2e2159417e6e4ab9492a03ca /net/ipv6 | |
parent | 459f326e995ce6f02f3dc79ca5bc4e2abe33d156 (diff) |
net: ipv4: new arp_accept option to accept garp only if in-network
In many deployments, we want the option to not learn a neighbor from
garp if the src ip is not in the same subnet as an address configured
on the interface that received the garp message. net.ipv4.arp_accept
sysctl is currently used to control creation of a neigh from a
received garp packet. This patch adds a new option '2' to
net.ipv4.arp_accept which extends option '1' by including the subnet
check.
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')
0 files changed, 0 insertions, 0 deletions