]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8243353eb06a3941cd522cc9d27bd6722cc165ae
treeb3039e732776680efca7f3dbe6d01a614dceb25b
parentc730420a1adc834a0534a98abafc271b780022f1
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]