Skip to contentSkip to conversation

ipneigh01.sh: Do not resolve hostnames when using arp -a

PATCH In review Martin Doucha 2 participants 2 messages Feb 8, 2023 – Feb 9, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ipneigh01.sh: Do not resolve hostnames when using arp -a

Unresolvable IP addresses can cause test timeouts.

---
 testcases/network/tcp_cmds/ipneigh/ipneigh01.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/network/tcp_cmds/ipneigh/ipneigh01.sh +1 -1
index 644a1fb8d..e67ff5cc8 100755
@@ -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)"
 		;;
 	*)
Signature · 5 lines
2.39.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
#1 lore raw

Hi Martin,

Quoted 1 line

Unresolvable IP addresses can cause test timeouts.

Good catch, merged. Thank you.

Kind regards,
Petr

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp