Skip to contentSkip to conversation

network/stress/ns-tools: make PING_MAX times adjustable

PATCH Cyril Hrubis 1 participant 1 message Jul 14, 2015 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi!

Quoted 15 lines

Some switches need a while to learn the new assigned address, which make the connectivity check failed. Make PING_MAX adjustable to let user can pre-define it based on their own environment.

---
 testcases/network/stress/ns-tools/check_icmpv4_connectivity | 2 +-
 testcases/network/stress/ns-tools/check_icmpv6_connectivity | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
testcases/network/stress/ns-tools/check_icmpv4_connectivity +0 -0
index 7630aae..2daaea4 100644

testcases/network/stress/ns-tools/check_icmpv4_connectivity line 50

Quoted 5 lines
testcases/network/stress/ns-tools/check_icmpv4_connectivity +1 -1
@@ -47,7 +47,7 @@
 $trace_logic
 
 # The max number of ICMP echo request
-PING_MAX=10
+PING_MAX=${PING_MAX:-"10"}

I do not like exposing random shell variables as interface without any documentation. Can't we just increase the PING_MAX to make it work for everybody without any extra work?

Signature · 13 lines
Cyril Hrubis
[email protected]

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list