selftests: disable rp_filter for icmp_redirect.sh
authorDavid Ahern <dsahern@kernel.org>
Mon, 17 Aug 2020 15:43:33 +0000 (09:43 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Sep 2020 09:29:35 +0000 (11:29 +0200)
commit5dd18770d9193429094feff9356b0a43164c6ac8
treea06f258864f6536be7e54b26ec1cb5857a11e463
parent8e6025686c8a00d08c710938488aa1618d570252
selftests: disable rp_filter for icmp_redirect.sh

[ Upstream commit bcf7ddb0186d366f761f86196b480ea6dd2dc18c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/net/icmp_redirect.sh