]> git.ipfire.org Git - thirdparty/chrony.git/commit
reference: activate local reference with large root distance
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 30 Mar 2016 15:12:12 +0000 (17:12 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 31 Mar 2016 14:08:45 +0000 (16:08 +0200)
commit81f440a882f8ddae772259ff474d168410073ac2
tree6e47348b3f8f5efd1c00ae04606c5f627389be46
parent981f897c96862a3497279a00f6fa3fe0d11a3a88
reference: activate local reference with large root distance

Since the update to NTPv4, when the clock is in the synchronised state
and the clock updates stop (e.g. sources become unreachable), it doesn't
switch to the unsynchronised state and the local reference is never
activate. This can be a problem for clients that rely on the server to
always have root distance below some value (e.g. chronyd's maxdistance).

Add a timer that will activate the local reference when the root
distance reaches a specified threshold. It can be configured with the
distance option in the local directive (by default 1.0 second).
cmdparse.c
cmdparse.h
conf.c
conf.h
reference.c