selftests: forwarding: lib: Add ping6_, ping_test_fails()
authorPetr Machata <petrm@nvidia.com>
Thu, 13 Jul 2023 16:15:30 +0000 (18:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Jul 2023 09:20:15 +0000 (10:20 +0100)
commit5f44a7144cc59e18454a74e0ed1d0bc33e9cf398
treeddd4d8741b028d3cac99ba14c35bde7d3fa02027
parenta5b52692e69338e4fc6abe0609679db3bade0d22
selftests: forwarding: lib: Add ping6_, ping_test_fails()

Add two helpers to run a ping test that succeeds when the pings themselves
fail.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Danielle Ratson <danieller@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/lib.sh