From: Miroslav Lichvar Date: Mon, 18 Jul 2022 11:11:27 +0000 (+0200) Subject: ntp: change minimum allowed poll to -7 X-Git-Tag: 4.3-pre1~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=685d8f725b40208514786bcf04a05dbbf34cc03b;p=thirdparty%2Fchrony.git ntp: change minimum allowed poll to -7 Change the minimum poll allowed in configuration from -6 to -7. This matches some PTP profiles using 128 sync messages per second. --- diff --git a/doc/chrony.conf.adoc b/doc/chrony.conf.adoc index e60e9838..8ad2f5d8 100644 --- a/doc/chrony.conf.adoc +++ b/doc/chrony.conf.adoc @@ -72,7 +72,7 @@ server, or its IP address. It supports the following options: This option specifies the minimum interval between requests sent to the server as a power of 2 in seconds. For example, *minpoll 5* would mean that the polling interval should not drop below 32 seconds. The default is 6 (64 -seconds), the minimum is -6 (1/64th of a second), and the maximum is 24 (6 +seconds), the minimum is -7 (1/128th of a second), and the maximum is 24 (6 months). Note that intervals shorter than 6 (64 seconds) should generally not be used with public servers on the Internet, because it might be considered abuse. A sub-second interval will be enabled only when the server is reachable @@ -82,7 +82,7 @@ should be in a local network. This option specifies the maximum interval between requests sent to the server as a power of 2 in seconds. For example, *maxpoll 9* indicates that the polling interval should stay at or below 9 (512 seconds). The default is 10 (1024 -seconds), the minimum is -6 (1/64th of a second), and the maximum is 24 (6 +seconds), the minimum is -7 (1/128th of a second), and the maximum is 24 (6 months). *iburst*::: With this option, *chronyd* will start with a burst of 4-8 requests in order to diff --git a/ntp_core.c b/ntp_core.c index 95d7ba23..9aa7d7e2 100644 --- a/ntp_core.c +++ b/ntp_core.c @@ -267,7 +267,7 @@ static ARR_Instance broadcasts; #define MAX_MAXDELAYDEVRATIO 1.0e6 /* Minimum and maximum allowed poll interval */ -#define MIN_POLL -6 +#define MIN_POLL -7 #define MAX_POLL 24 /* Enable sub-second polling intervals only when the peer delay is not