selftests: net: arp_ndisc_untracked_subnets: test for arp_accept and accept_untracked_na
authorJaehee Park <jhpark1013@gmail.com>
Wed, 13 Jul 2022 23:40:49 +0000 (16:40 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 16 Jul 2022 01:55:50 +0000 (18:55 -0700)
commit0ea7b0a454ca1839acddc37c4cf802f0e0d5fb5f
treeb3039e732776680efca7f3dbe6d01a614dceb25b
parentaaa5f515b16b6b3e137779ffb4c9558bb58c1e75
selftests: net: arp_ndisc_untracked_subnets: test for arp_accept and accept_untracked_na

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>
tools/testing/selftests/net/Makefile
tools/testing/selftests/net/arp_ndisc_untracked_subnets.sh [new file with mode: 0755]