Skip to content

Commit 8b3170e

Browse files
Jianguo Wudavem330
authored andcommitted
selftests: net: using ping6 for IPv6 in udpgro_fwd.sh
udpgro_fwd.sh output following message: ping: 2001:db8:1::100: Address family for hostname not supported Using ping6 when pinging IPv6 addresses. Fixes: a062260 ("selftests: net: add UDP GRO forwarding self-tests") Signed-off-by: Jianguo Wu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent be1c5b5 commit 8b3170e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/testing/selftests/net/udpgro_fwd.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,15 @@ for family in 4 6; do
185185
IPT=iptables
186186
SUFFIX=24
187187
VXDEV=vxlan
188+
PING=ping
188189

189190
if [ $family = 6 ]; then
190191
BM_NET=$BM_NET_V6
191192
OL_NET=$OL_NET_V6
192193
SUFFIX="64 nodad"
193194
VXDEV=vxlan6
194195
IPT=ip6tables
196+
PING="ping6"
195197
fi
196198

197199
echo "IPv$family"
@@ -237,7 +239,7 @@ for family in 4 6; do
237239

238240
# load arp cache before running the test to reduce the amount of
239241
# stray traffic on top of the UDP tunnel
240-
ip netns exec $NS_SRC ping -q -c 1 $OL_NET$DST_NAT >/dev/null
242+
ip netns exec $NS_SRC $PING -q -c 1 $OL_NET$DST_NAT >/dev/null
241243
run_test "GRO fwd over UDP tunnel" $OL_NET$DST_NAT 1 1 $OL_NET$DST
242244
cleanup
243245

0 commit comments

Comments
 (0)