]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: disable rp_filter for icmp_redirect.sh
authorDavid Ahern <dsahern@kernel.org>
Mon, 17 Aug 2020 15:43:33 +0000 (09:43 -0600)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Aug 2020 21:59:24 +0000 (14:59 -0700)
commit2746c361a3693f18805576ca5b7b42e7e2ddd1f3
tree2438b7e2f2a6a1d92a8528d7fb640d29789572a1
parentc68206952a6326de8cc3cd76cbed093360d1ddb7
selftests: disable rp_filter for icmp_redirect.sh

h1 is initially configured to reach h2 via r1 rather than the
more direct path through r2. If rp_filter is set and inherited
for r2, forwarding fails since the source address of h1 is
reachable from eth0 vs the packet coming to it via r1 and eth1.
Since rp_filter setting affects the test, explicitly reset it.

Signed-off-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/icmp_redirect.sh