selftests/bpf/xdp_redirect_multi: Use arping to accurate the arp number
authorHangbin Liu <liuhangbin@gmail.com>
Wed, 27 Oct 2021 03:35:51 +0000 (11:35 +0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 5 Nov 2021 15:38:02 +0000 (16:38 +0100)
commitf53ea9dbf78d42a10e2392b5c59362ccc224fd1d
tree0357f54b69c6d6a3d786683db124aab331cf6ce2
parent8b4ac13abe7d82da0e0d22a9ba2e27301559a93e
selftests/bpf/xdp_redirect_multi: Use arping to accurate the arp number

The arp request number triggered by ping none exist address is not accurate,
which may lead the test false negative/positive. Change to use arping to
accurate the arp number. Also do not use grep pattern match for dot.

Fixes: d23292476297 ("selftests/bpf: Add xdp_redirect_multi test")
Suggested-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20211027033553.962413-3-liuhangbin@gmail.com
tools/testing/selftests/bpf/test_xdp_redirect_multi.sh