mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 18:35:06 -05:00
The initstepslew code has its own minimal NTP implementation. Drop the code, add a new initstepslew mode to the reference updating code and use regular NTP sources with iburst flag for initstepslew addresses instead. When an update is made or a source is found unreachable, log a message, remove the initstepslew sources and switch to normal mode. This reduces code duplication and makes initstepslew use features implemented only in the main code like source combining or SO_TIMESTAMP support.
This is a collection of simulation tests. They use clknetsim to simulate multiple systems connected in a network. It's available at https://github.com/mlichvar/clknetsim If this directory doesn't have a clknetsim subdirectory, a known working revision will be downloaded and compiled automatically. Currently it runs only on Linux. The tests are written in bash and they can be run directly. The ./run script runs all tests.