mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 17:15:07 -05:00
ntp: suggest clients to increase their polling interval
When the poll value in a client request is smaller than the server's NTP rate limiting interval, set poll in the response to the rate limiting interval to suggest the client to increase its polling interval. This follows ntpd as a server. No current client implementation seems to be increasing its interval by the poll, but it may change in the future.
This commit is contained in:
@@ -39,6 +39,7 @@ extern int CLG_LogCommandAccess(IPAddr *client, struct timespec *now);
|
||||
extern int CLG_LimitNTPResponseRate(int index);
|
||||
extern int CLG_LimitCommandResponseRate(int index);
|
||||
extern void CLG_GetNtpTimestamps(int index, NTP_int64 **rx_ts, NTP_int64 **tx_ts);
|
||||
extern int CLG_GetNtpMinPoll(void);
|
||||
|
||||
/* And some reporting functions, for use by chronyc. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user