Skip to content

Commit 5e75d0b

Browse files
Jianguo Wukuba-moo
authored andcommitted
selftests: net: udpgro_fwd.sh: explicitly checking the available ping feature
As Paolo pointed out, the result of ping IPv6 address depends on the running distro. So explicitly checking the available ping feature, as e.g. do the bareudp.sh self-tests. Fixes: 8b3170e ("selftests: net: using ping6 for IPv6 in udpgro_fwd.sh") Signed-off-by: Jianguo Wu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 0f1fe7b commit 5e75d0b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/testing/selftests/net/udpgro_fwd.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ for family in 4 6; do
193193
SUFFIX="64 nodad"
194194
VXDEV=vxlan6
195195
IPT=ip6tables
196-
PING="ping6"
196+
# Use ping6 on systems where ping doesn't handle IPv6
197+
ping -w 1 -c 1 ::1 > /dev/null 2>&1 || PING="ping6"
197198
fi
198199

199200
echo "IPv$family"

0 commit comments

Comments
 (0)