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:
parent
7914c60f5a
commit
eea319c4b7
@ -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':
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user