OSDN Git Service

selftests: pmtu: detect correct binary to ping ipv6 addresses
authorSabrina Dubroca <sd@queasysnail.net>
Thu, 30 Aug 2018 14:01:18 +0000 (16:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 1 Sep 2018 06:14:20 +0000 (23:14 -0700)
commitc81c7012e0c769b5704c2b07bd5224965e76fb70
tree7e60253fdb5ba6257d1d3d4a0c419db38c11a2d0
parent902b5417f28d955cdb4898df6ffaab15f56c5cff
selftests: pmtu: detect correct binary to ping ipv6 addresses

Some systems don't have the ping6 binary anymore, and use ping for
everything. Detect the absence of ping6 and try to use ping instead.

Fixes: d1f1b9cbf34c ("selftests: net: Introduce first PMTU test")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Acked-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/pmtu.sh