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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=169144
@ -630,7 +630,7 @@ main(int argc, char **argv)
|
|||||||
|
|
||||||
case 'w':
|
case 'w':
|
||||||
waittime = str2val(optarg, "wait time",
|
waittime = str2val(optarg, "wait time",
|
||||||
2, 24 * 60 * 60);
|
1, 24 * 60 * 60);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'z':
|
case 'z':
|
||||||
|
@ -541,9 +541,9 @@ main(argc, argv)
|
|||||||
"traceroute6: invalid wait time.\n");
|
"traceroute6: invalid wait time.\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
if (waittime <= 1) {
|
if (waittime < 1) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"traceroute6: wait must be >1 sec.\n");
|
"traceroute6: wait must be >= 1 sec.\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user