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:
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user