]> www.infradead.org Git - users/willy/pagecache.git/commit
selftests: netfilter: Stabilize rpath.sh
authorPhil Sutter <phil@nwl.cc>
Fri, 6 Dec 2024 14:08:40 +0000 (15:08 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 11 Dec 2024 22:15:17 +0000 (23:15 +0100)
commitd92906fd1b940681b4509f7bb8ae737789fb4695
tree0f55b222cb89ef25fd2186b969db550fb4c5c1b7
parent31f1b55d5d7e531cd827419e5d71c19f24de161c
selftests: netfilter: Stabilize rpath.sh

On some systems, neighbor discoveries from ns1 for fec0:42::1 (i.e., the
martian trap address) would happen at the wrong time and cause
false-negative test result.

Problem analysis also discovered that IPv6 martian ping test was broken
in that sent neighbor discoveries, not echo requests were inadvertently
trapped

Avoid the race condition by introducing the neighbors to each other
upfront. Also pin down the firewall rules to matching on echo requests
only.

Fixes: efb056e5f1f0 ("netfilter: ip6t_rpfilter: Fix regression with VRF interfaces")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tools/testing/selftests/net/netfilter/rpath.sh