mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Decrease ping6's minimum allowed interval
from .01 to .000001. Note that due to the architecture of ping6, you are still limited to kern.hz pings per second. MFC after: 2 weeks
This commit is contained in:
parent
ba4e014b5c
commit
de625c605d
1 changed files with 3 additions and 3 deletions
|
|
@ -457,9 +457,9 @@ main(argc, argv)
|
|||
if (interval.tv_sec < 0)
|
||||
errx(1, "illegal timing interval %s", optarg);
|
||||
/* less than 1/hz does not make sense */
|
||||
if (interval.tv_sec == 0 && interval.tv_usec < 10000) {
|
||||
warnx("too small interval, raised to 0.01");
|
||||
interval.tv_usec = 10000;
|
||||
if (interval.tv_sec == 0 && interval.tv_usec < 1) {
|
||||
warnx("too small interval, raised to .000001");
|
||||
interval.tv_usec = 1;
|
||||
}
|
||||
options |= F_INTERVAL;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue