mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
selftests: net: using ping6 for IPv6 in udpgro_fwd.sh
udpgro_fwd.sh output following message:
ping: 2001:db8:1:💯 Address family for hostname not supported
Using ping6 when pinging IPv6 addresses.
Fixes: a062260a9d
("selftests: net: add UDP GRO forwarding self-tests")
Signed-off-by: Jianguo Wu <wujianguo@chinatelecom.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
be1c5b5322
commit
8b3170e075
@ -185,6 +185,7 @@ for family in 4 6; do
|
|||||||
IPT=iptables
|
IPT=iptables
|
||||||
SUFFIX=24
|
SUFFIX=24
|
||||||
VXDEV=vxlan
|
VXDEV=vxlan
|
||||||
|
PING=ping
|
||||||
|
|
||||||
if [ $family = 6 ]; then
|
if [ $family = 6 ]; then
|
||||||
BM_NET=$BM_NET_V6
|
BM_NET=$BM_NET_V6
|
||||||
@ -192,6 +193,7 @@ for family in 4 6; do
|
|||||||
SUFFIX="64 nodad"
|
SUFFIX="64 nodad"
|
||||||
VXDEV=vxlan6
|
VXDEV=vxlan6
|
||||||
IPT=ip6tables
|
IPT=ip6tables
|
||||||
|
PING="ping6"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "IPv$family"
|
echo "IPv$family"
|
||||||
@ -237,7 +239,7 @@ for family in 4 6; do
|
|||||||
|
|
||||||
# load arp cache before running the test to reduce the amount of
|
# load arp cache before running the test to reduce the amount of
|
||||||
# stray traffic on top of the UDP tunnel
|
# stray traffic on top of the UDP tunnel
|
||||||
ip netns exec $NS_SRC ping -q -c 1 $OL_NET$DST_NAT >/dev/null
|
ip netns exec $NS_SRC $PING -q -c 1 $OL_NET$DST_NAT >/dev/null
|
||||||
run_test "GRO fwd over UDP tunnel" $OL_NET$DST_NAT 1 1 $OL_NET$DST
|
run_test "GRO fwd over UDP tunnel" $OL_NET$DST_NAT 1 1 $OL_NET$DST
|
||||||
cleanup
|
cleanup
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user