selftests: add ping test with ping_group_range tuned
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Wed, 4 May 2022 09:07:39 +0000 (11:07 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 6 May 2022 01:12:44 +0000 (18:12 -0700)
commite71b7f1f44d3d88c677769c85ef0171caf9fc89f
treea75cef481e4b41b4c69d81ea070b5dd7fcaee616
parente1a7ac6f3ba6e157adcd0ca94d92a401f1943f56
selftests: add ping test with ping_group_range tuned

The 'ping' utility is able to manage two kind of sockets (raw or icmp),
depending on the sysctl ping_group_range. By default, ping_group_range is
set to '1 0', which forces ping to use an ip raw socket.

Let's replay the ping tests by allowing 'ping' to use the ip icmp socket.
After the previous patch, ipv4 tests results are the same with both kinds
of socket. For ipv6, there are a lot a new failures (the previous patch
fixes only two cases).

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/fcnal-test.sh