bin/110933: [traceroute][patch] minimal wait time should be 1 sec, not 2

Dmitry Marakasov amdmi3 at amdmi3.ru
Tue Mar 27 15:50:10 UTC 2007


>Number:         110933
>Category:       bin
>Synopsis:       [traceroute][patch] minimal wait time should be 1 sec, not 2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 27 15:50:09 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Marakasov
>Release:        FreeBSD 6.1-RELEASE-p12 i386
>Organization:
>Environment:
System: FreeBSD hades.panopticon 6.1-RELEASE-p12 FreeBSD 6.1-RELEASE-p12 #0: Tue Jan 16 23:12:21 MSK 2007 amdmi3 at hades.panopticon:/usr/obj/usr/src/sys/HADES i386


>Description:
In traceroute utility, minimal time to wait for reply is 2 seconds. That's annoying, because system administrators often need traceroute to skip hosts that do not respond faster, but when specifying obvious wait time as 1 sec, they get an error. I see no reason for minimal wait time to be 2 sec, the patch attached lowers limit to well expected 1 second.
>How-To-Repeat:
1) traceroute -w1 somehost
traceroute: wait time must be > 1
2) ?!
>Fix:

--- traceroute.patch begins here ---
--- src/contrib/traceroute/traceroute.c.orig	Tue Mar 27 19:34:53 2007
+++ src/contrib/traceroute/traceroute.c	Tue Mar 27 19:35:00 2007
@@ -608,7 +608,7 @@
 
 		case 'w':
 			waittime = str2val(optarg, "wait time",
-			    2, 24 * 60 * 60);
+			    1, 24 * 60 * 60);
 			break;
 
 		case 'z':
--- traceroute.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list