mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 18:05:06 -05:00
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.
This is a collection of simulation tests using the clknetsim simulator (supported on Linux only). https://gitlab.com/chrony/clknetsim The CLKNETSIM_PATH environment variable should point to the directory where clknetsim was downloaded and compiled. If the variable is not set, the tests will look for clknetsim in ./clknetsim in the current directory. The tests are written in bash and they can be run directly. The ./run script runs all tests.