sources: add require option

Require that at least one of the sources specified with this option is
selectable (i.e. recently reachable and not a falseticker) before
updating the clock. Together with the trust option this may be useful to
allow a trusted, but not very precise, reference clock or a trusted
authenticated NTP source to be safely combined with unauthenticated NTP
sources in order to improve the accuracy of the clock. They can be
selected and used for synchronization only if they agree with the
trusted and required source.
This commit is contained in:
Miroslav Lichvar
2016-01-07 16:17:17 +01:00
parent 936f5cb0f1
commit e98f76e084
8 changed files with 44 additions and 6 deletions

View File

@@ -2724,6 +2724,14 @@ which are not very accurate, but are locked with a PPS refclock.
Assume time from this source is always true. It can't be rejected as a
falseticker in the source selection if sources that are specified without this
option don't agree with it.
@item require
Require that at least one of the sources specified with this option is
selectable (i.e. recently reachable and not a falseticker) before updating the
clock. Together with the @code{trust} option this may be useful to allow a
trusted, but not very precise, reference clock to be safely combined with
unauthenticated NTP sources in order to improve the accuracy of the clock.
They can be selected and used for synchronisation only if they agree with
the trusted and required source.
@item minsamples
Set the minimum number of samples kept for this source. This overrides the
@code{minsamples} directive (@pxref{minsamples directive}).
@@ -3033,6 +3041,14 @@ Assume time from this source is always true. It can't be rejected as a
falseticker in the source selection if sources that are specified without this
option don't agree with it.
@item require
Require that at least one of the sources specified with this option is
selectable (i.e. recently reachable and not a falseticker) before updating the
clock. Together with the @code{trust} option this may be useful to allow a
trusted authenticated source to be safely combined with unauthenticated sources
in order to improve the accuracy of the clock. They can be selected and used
for synchronisation only if they agree with the trusted and required source.
@item minsamples
Set the minimum number of samples kept for this source. This overrides the
@code{minsamples} directive (@pxref{minsamples directive}).