mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-06 20:55:06 -05:00
ntp: don't replace source instance when changing address
Add new functions to change source's reference ID/address and reset the instance. Use that instead of destroying and creating a new instance when the NTP address is changed.
This commit is contained in:
@@ -46,6 +46,9 @@ extern void SST_DeleteInstance(SST_Stats inst);
|
||||
/* This function resets an instance */
|
||||
extern void SST_ResetInstance(SST_Stats inst);
|
||||
|
||||
/* This function changes the reference ID and IP address */
|
||||
extern void SST_SetRefid(SST_Stats inst, uint32_t refid, IPAddr *addr);
|
||||
|
||||
/* This function accumulates a single sample into the statistics handler
|
||||
|
||||
sample_time is the epoch at which the sample is to be considered to
|
||||
|
||||
Reference in New Issue
Block a user