]> git.ipfire.org Git - thirdparty/chrony.git/commit
ntp: add copy option
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 14 Apr 2021 13:58:51 +0000 (15:58 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 15 Apr 2021 13:17:13 +0000 (15:17 +0200)
commit84d2811800ea690e11154ffde391575dbd5a6abb
tree8a60fca6b7ce926735f9e4fd1ddc79df16505b6c
parent635a9d3f5a7c7ed35bf11c57105252ce8cbccfa6
ntp: add copy option

When separate client and server instances of chronyd are running on one
computer (e.g. for security or performance reasons) and are synchronized
to each other, the server instance provides a reference ID based on the
local address used for synchronization of its NTP clock, which breaks
detection of synchronization loops for its own clients.

Add a "copy" option to specify that the server and client are closely
related, no loop can form between them, and the client should assume the
reference ID and stratum of the server to fix detection of loops between
the server and clients of the client.
candm.h
client.c
cmdmon.c
cmdparse.c
doc/chrony.conf.adoc
ntp_core.c
srcparams.h
test/simulation/141-copy [new file with mode: 0755]