1
0
mirror of https://frontier.innolan.net/rainlance/amiga-ntimed.git synced 2026-05-03 12:05:45 +00:00

Add signal detection to TODO and time_unix.c and use this to let

SIGHUP restart processing in ntimed-client.

Have the NTP_filter clear state and the PLL start over when
TB_generation changes.

Simplify the NTP_PeerSet code with respect to real/simulated peers, and
add some preliminary scaffolding for the server maintenance code.
This commit is contained in:
Poul-Henning Kamp
2015-01-11 19:44:54 +00:00
parent 4eb6fde3b7
commit 3da3e4bde3
12 changed files with 239 additions and 106 deletions

View File

@@ -49,6 +49,8 @@ struct ntp_filter {
double alolo, ahihi;
double navg;
double trust;
int generation;
};
static void __match_proto__(ntp_filter_f)
@@ -64,6 +66,12 @@ nf_filter(struct ocx *ocx, const struct ntp_peer *np)
CAST_OBJ_NOTNULL(nf, np->filter_priv, NTP_FILTER_MAGIC);
if (nf->generation != TB_generation) {
nf->navg = 0;
nf->alo = nf->amid = nf->ahi = 0.0;
nf->alolo = nf->ahihi = 0.0;
}
rxp = np->rx_pkt;
CHECK_OBJ_NOTNULL(rxp, NTP_PACKET_MAGIC);