]> git.ipfire.org Git - thirdparty/chrony.git/commit
sources: add configurable limits for stratum
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 4 Nov 2025 10:39:40 +0000 (11:39 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 4 Nov 2025 13:47:35 +0000 (14:47 +0100)
commit2da8fbc4c326d932028c60e8c982d2fbe3f28e11
treee38bb4033c1603167c470eb3532a4dd8b95819a1
parentc252e52ee2cfdc1adc366655bcb395d218ff1786
sources: add configurable limits for stratum

Add minstratum and maxstratum directives to specify the minimum and
maximum allowed stratum of sources to be selected. The default values
are 0 and 15 respectively, allowing all NTP sources and refclocks.

Sources that are rejected due to having too large or too small stratum
are marked with 'r' in the selection log and selectdata report.

This is similar to the "tos floor" and "tos ceiling" settings of ntpd,
except that maxstratum is interpreted as one below the ceiling.
client.c
conf.c
conf.h
doc/chrony.conf.adoc
doc/chronyc.adoc
sources.c
test/simulation/151-stratumlimit [new file with mode: 0755]