ntp: reset NCR instance thoroughly when switching to offline

This commit is contained in:
Miroslav Lichvar
2014-05-30 17:04:10 +02:00
parent 13d734c8d2
commit 3ebebac695
2 changed files with 38 additions and 31 deletions

View File

@@ -55,6 +55,9 @@ extern void NCR_DestroyInstance(NCR_Instance instance);
/* Start an instance */
extern void NCR_StartInstance(NCR_Instance instance);
/* Reset an instance */
extern void NCR_ResetInstance(NCR_Instance inst);
/* This routine is called when a new packet arrives off the network,
and it relates to a source we have an ongoing protocol exchange with */
extern void NCR_ProcessKnown(NTP_Packet *message, struct timeval *now, double now_err, NCR_Instance data, int sock_fd, int length);