[LTP] [PATCH] ipneigh01.sh: Do not resolve hostnames when using arp -a

Martin Doucha mdoucha@suse.cz
Wed Feb 8 18:01:46 CET 2023


Unresolvable IP addresses can cause test timeouts.

Signed-off-by: Martin Doucha <mdoucha@suse.cz>
---
 testcases/network/tcp_cmds/ipneigh/ipneigh01.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/network/tcp_cmds/ipneigh/ipneigh01.sh b/testcases/network/tcp_cmds/ipneigh/ipneigh01.sh
index 644a1fb8d..e67ff5cc8 100755
--- a/testcases/network/tcp_cmds/ipneigh/ipneigh01.sh
+++ b/testcases/network/tcp_cmds/ipneigh/ipneigh01.sh
@@ -25,7 +25,7 @@ do_setup()
 		if [ -n "$TST_IPV6" ]; then
 			tst_brk TCONF "'arp' doesn't support IPv6"
 		fi
-		SHOW_CMD="arp -a"
+		SHOW_CMD="arp -an"
 		DEL_CMD="ROD arp -d $(tst_ipaddr rhost) -i $(tst_iface)"
 		;;
 	*)
-- 
2.39.0



More information about the ltp mailing list