Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Commits on Source (3)
Typos, doc tweaks
· 865f7a96
Hal Murray
authored
Oct 09, 2019
865f7a96
Repair time-since-reset (column 3) in usestats
· 9f726c30
Hal Murray
authored
Oct 17, 2019
9f726c30
Try to address Gentoo bug#698042
· 4a23c65c
James Browning
authored
Oct 19, 2019
4a23c65c
Hide whitespace changes
Inline
Side-by-side
devel/linkcheck
View file @
4a23c65c
...
...
@@ -7,7 +7,7 @@
# mode.
#
# Optional argument is the root directory of the tree, otherwise it
# is run from the c
o
rrent directory.
# is run from the c
u
rrent directory.
#
# SPDX-License-Identifier: BSD-2-Clause
from
__future__
import
print_function
,
division
...
...
docs/standards.adoc
View file @
4a23c65c
...
...
@@ -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/rfc
5905
[RFC 7822: Network Time Protocol
link:https://tools.ietf.org/html/rfc
7822
[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/rfc590
5
[RFC 5906]. Autokey
described in link:https://tools.ietf.org/html/rfc590
6
[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.
...
...
etc/logrotate-config.ntpd
View file @
4a23c65c
...
...
@@ -5,6 +5,7 @@
/var/log/ntpd.log {
monthly
missingok
postrotate
/usr/bin/killall -HUP ntpd
endscript
...
...
ntpd/ntp_proto.c
View file @
4a23c65c
...
...
@@ -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
;
}
...
...
ntpd/ntp_util.c
View file @
4a23c65c
...
...
@@ -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
,
...
...