ntp: don't reset polling interval when switching to/from online

This allows chronyd to ramp up the polling interval even when the source
is frequently switched between the online and offline modes.
This commit is contained in:
Miroslav Lichvar
2016-11-23 12:45:11 +01:00
parent 3a67dedad6
commit 4d7eb2f7a6
3 changed files with 12 additions and 3 deletions

View File

@@ -70,6 +70,9 @@ extern void NCR_StartInstance(NCR_Instance instance);
/* Reset an instance */
extern void NCR_ResetInstance(NCR_Instance inst);
/* Reset polling interval of an instance */
extern void NCR_ResetPoll(NCR_Instance instance);
/* Change the remote address of an instance */
extern void NCR_ChangeRemoteAddress(NCR_Instance inst, NTP_Remote_Address *remote_addr);