]> git.ipfire.org Git - thirdparty/chrony.git/commit
refclock: restart local mode after losing lock
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 11 May 2022 09:36:57 +0000 (11:36 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 11 May 2022 12:27:18 +0000 (14:27 +0200)
commit8d08486edf93269bdbd1eb4ef933c9cc5f6dd609
tree81f152c2eeecf31e9e26bb24d6edd6e05fb0ae42
parenta3b376cf0a5369ba0722d1d287fbc3506f4933ad
refclock: restart local mode after losing lock

A refclock in the local mode is locked to itself. When the maxlockage
check failed after missing some samples, it failed permanently and the
refclock was not able to accumulate any new samples.

When the check fails, drop all samples and reset the source to start
from scratch.

Reported-by: Dan Drown <dan-ntp@drown.org>
refclock.c