o I failed to find a suitable explanation why traceroute(8) and

traceroute6(8) force -w flag (wait time) to be > 1 sec.  Make it
possible to use 1 sec wait time.

PR:		bin/110933
Submitted by:	Dmitry Marakasov
Reviewed by:	freebsd-net (silence)
MFC after:	1 month
This commit is contained in:
Maxim Konovalov 2007-04-30 19:08:13 +00:00
parent 7914c60f5a
commit eea319c4b7
2 changed files with 3 additions and 3 deletions

View File

@ -630,7 +630,7 @@ main(int argc, char **argv)
case 'w':
waittime = str2val(optarg, "wait time",
2, 24 * 60 * 60);
1, 24 * 60 * 60);
break;
case 'z':

View File

@ -541,9 +541,9 @@ main(argc, argv)
"traceroute6: invalid wait time.\n");
exit(1);
}
if (waittime <= 1) {
if (waittime < 1) {
fprintf(stderr,
"traceroute6: wait must be >1 sec.\n");
"traceroute6: wait must be >= 1 sec.\n");
exit(1);
}
break;