Skip to content
Commits on Source (3)
......@@ -7,7 +7,7 @@
# mode.
#
# Optional argument is the root directory of the tree, otherwise it
# is run from the corrent directory.
# is run from the current directory.
#
# SPDX-License-Identifier: BSD-2-Clause
from __future__ import print_function, division
......
......@@ -18,11 +18,11 @@ SNTP is specified by link:https://tools.ietf.org/html/rfc2030[RFC 2030:
Simple Network Time Protocol (SNTP) Version 4 for IPv4, IPv6 and OSI].
Extension fields are described by
link:https://tools.ietf.org/html/rfc5905[RFC 7822: Network Time Protocol
link:https://tools.ietf.org/html/rfc7822[RFC 7822: Network Time Protocol
Version 4 (NTPv4) Extension Fields].
NTPsec has entirely dropped conformance with the Autokey feature
described in link:https://tools.ietf.org/html/rfc5905[RFC 5906]. Autokey
described in link:https://tools.ietf.org/html/rfc5906[RFC 5906]. Autokey
never quite worked, and the design was unstable enough that if there
was ever actually a time when it fully conformed to its RFC that span
must have been pretty short.
......@@ -60,9 +60,9 @@ link:https://datatracker.ietf.org/doc/draft-ietf-ntp-data-minimization/[NTP
Client Data Minimization] draft RFC, which changes the client-side
generation of some packet headers.
NTPsec also conforms to the
link:https://datatracker.ietf.org/doc/draft-ietf-ntp-mac/[MAC for NTP]
draft RFC, implementing AES-CMAC (128 bits).
NTPsec also implements
link:https://tools.ietf.org/html/rfc8573[RFC 8573:
Message Authentication Code for the Network Time Protocol].
The table of reference identifiers in Figure 12 is largely obsolete
and somewhat incomplete relative to the code.
......
......@@ -5,6 +5,7 @@
/var/log/ntpd.log {
monthly
missingok
postrotate
/usr/bin/killall -HUP ntpd
endscript
......
......@@ -223,11 +223,11 @@ uint64_t stat_kodsent(void)
uptime_t stat_use_stattime(void)
{
return stat_count.sys_stattime;
return stat_count.use_stattime;
}
void set_use_stattime(uptime_t stattime) {
stat_count.sys_stattime = stattime;
stat_count.use_stattime = stattime;
}
......
......@@ -634,7 +634,7 @@ void record_use_stats(void)
stimex += usage.ru_stime.tv_sec - oldusage.ru_stime.tv_sec;
fprintf(usestats.fp,
"%s %u %.3f %.3f %ld %ld %ld %ld %ld %ld %ld %ld %ld\n",
timespec_to_MJDtime(&now), current_time - stat_stattime(),
timespec_to_MJDtime(&now), current_time - stat_use_stattime(),
utime, stimex,
usage.ru_minflt - oldusage.ru_minflt,
usage.ru_majflt - oldusage.ru_majflt,
......