1
0
mirror of https://frontier.innolan.net/rainlance/amiga-ntimed.git synced 2025-11-23 01:53:11 +00:00

Pass the expected socket family into UdpTimedRx() so it can pick the

right socket, rather than listening on both.

Implement TODO_Cancel()

Only wake the time_unix task when needed.

Fix sockaddr comparison for IPv6[1]

Grap userland timestamp, in case SCM_TIMESTAMP* does not work/isn't
available.[1]

Undefined timestamp fix for simfile reading[1]

Minor fixes from github

[1] From Ronan Flood
This commit is contained in:
Poul-Henning Kamp
2015-01-09 10:44:47 +00:00
parent 9caeb38a6f
commit 27ca509920
11 changed files with 182 additions and 67 deletions

View File

@ -82,13 +82,13 @@ NTP_Tool_Format(char *p, ssize_t len, const struct ntp_packet *pkt)
e = p + len;
p += snprintf(p, e - p, "[%u", pkt->ntp_leap);
p += snprintf(p, e - p, "[%d", pkt->ntp_leap);
assert(p < e);
p += snprintf(p, e - p, " %u", pkt->ntp_version);
assert(p < e);
p += snprintf(p, e - p, " %u", pkt->ntp_mode);
p += snprintf(p, e - p, " %d", pkt->ntp_mode);
assert(p < e);
p += snprintf(p, e - p, " %3u", pkt->ntp_stratum);
@ -196,6 +196,7 @@ NTP_Tool_Scan(struct ntp_packet *pkt, const char *buf)
if (d_fields[6] != 0.0) {
pkt->ts_rx = pkt->ntp_transmit;
TS_Add(&pkt->ts_rx, d_fields[6]);
}
} else
INIT_OBJ(&pkt->ts_rx, TIMESTAMP_MAGIC);
return (0);
}