aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/arp_ndisc_untracked_subnets.sh (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-07-15selftests: net: arp_ndisc_untracked_subnets: test for arp_accept and accept_untracked_naJaehee Park1-0/+308
ipv4 arp_accept has a new option '2' to create new neighbor entries only if the src ip is in the same subnet as an address configured on the interface that received the garp message. This selftest tests all options in arp_accept. ipv6 has a sysctl endpoint, accept_untracked_na, that defines the behavior for accepting untracked neighbor advertisements. A new option similar to that of arp_accept for learning only from the same subnet is added to accept_untracked_na. This selftest tests this new feature. Signed-off-by: Jaehee Park <jhpark1013@gmail.com> Suggested-by: Roopa Prabhu <roopa@nvidia.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>