diff -Naur ntp-4.2.8p17-orig/ntpd/ntp_proto.c ntp-4.2.8p17/ntpd/ntp_proto.c >--- ntp-4.2.8p17-orig/ntpd/ntp_proto.c 2023-06-06 12:33:42.000000000 +0100 >+++ ntp-4.2.8p17/ntpd/ntp_proto.c 2024-04-30 12:11:32.402867197 +0100--
@@ -2273,7 +2273,9 @@
sys_badlength++;
return; /* invalid packet poll */
}
+/***
peer->ppoll = max(peer->minpoll, pkt->ppoll);
+***/
if (kissCode == RATEKISS) {
peer->selbroken++; /* Increment the KoD count */
report_event(PEVNT_RATE, peer, NULL);
A recent restart of ntpd using the pool resulted in me
seeing a sixth server in the uk pool returning poll 4.
The following patch stops ntpd from being clamped at
minpoll. I don't know enough about ntpd to know whether
there are modes which require the clamp but if there
are then a simple
if (some modes)
peer->ppoll = max(peer->minpoll, pkt->ppoll);
should do the job.
On 2024-05-01, Roger <invalid@invalid.invalid> wrote:
A recent restart of ntpd using the pool resulted in me
seeing a sixth server in the uk pool returning poll 4.
The LeoNTP units are known to do that or at least they used to do that
with some firmware versions.
The following patch stops ntpd from being clamped at
minpoll. I don't know enough about ntpd to know whether
there are modes which require the clamp but if there
are then a simple
if (some modes)
peer->ppoll = max(peer->minpoll, pkt->ppoll);
should do the job.
The symmetric mode needs this as messages are both requests and
responses at the same time. The poll value tells the other peer how >frequently it would like to get a response (which is a request of the
other peer) to finish its NTP measurement.
In the client-server mode it can be ignored, or used only as a hint for >increasing the polling interval in order to avoid rate limiting. There
was an argument made that decreasing the interval could be useful with
leap smearing, allowing the server to reduce the client's polling
interval to make it better track the server's frequency adjustments in
the smear, but I'm not sure if it's worth the trouble with servers that
don't follow the specification.
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 997 |
Nodes: | 10 (0 / 10) |
Uptime: | 219:45:13 |
Calls: | 13,045 |
Files: | 186,574 |
Messages: | 3,292,535 |