Miroslav Lichvar pushed to branch master at chrony / chrony
Commits: d7c2b1d2 by Miroslav Lichvar at 2024-02-07T10:23:36+01:00 ntp: support per-source IP family restriction Add a new parameter to the NSR_AddSourceByName() function to allow individual sources to be limited to IPv4 or IPv6 addresses. This doesn't change the options passed to the resolver. It's just an additional filter in the processing of resolved addresses following the -4/-6 command-line option of chronyd. - - - - - 5cb584d6 by Miroslav Lichvar at 2024-02-07T10:23:40+01:00 conf: add ipv4 and ipv6 options to server/pool/peer directive Accept "ipv4" and "ipv6" options in the server/pool/peer directive to use only IPv4 or IPv6 addresses respectively. The configuration is different from the "server [-4|-6] hostname" syntax supported by ntpd to avoid breaking existing scripts which expect the hostname to always be the first argument of the directives. - - - - - 2d349595 by Miroslav Lichvar at 2024-02-07T10:23:40+01:00 cmdmon: simplify flag checking in handle_add_source() - - - - - 637fa29e by Miroslav Lichvar at 2024-02-07T10:23:40+01:00 cmdmon: add ipv4/ipv6 options to add source command - - - - - 8d19f493 by Miroslav Lichvar at 2024-02-07T10:23:40+01:00 ntp: add per-source counters of kernel and hardware timestamps - - - - - eb26d131 by Miroslav Lichvar at 2024-02-07T10:23:40+01:00 cmdmon: add timestamp counters to ntpdata report - - - - - 017d6f8f by Patrick Oppenlander at 2024-02-08T12:54:37+01:00 reference: move leap second source into leapdb Separate out source of leap second data into a new module in preparation for supporting more sources such as leap-seconds.list. - - - - - 02ae9a86 by Patrick Oppenlander at 2024-02-08T12:54:37+01:00 leapdb: make twice per day check logic common We want to do the twice per day check regardless of the data source. Move the check up one level from get_tz_leap() into LDB_GetLeap(). - - - - - 83f90279 by Patrick Oppenlander at 2024-02-08T15:54:21+01:00 leapdb: move source check into separate function The sanity checks are valid for all possible sources of leap second information, so move them into a separate function check_leap_source(). - - - - - 53823b9f by Patrick Oppenlander at 2024-02-08T15:54:24+01:00 leapdb: support leap-seconds.list as second source The existing implementation of getting leap second information from a timezone in get_tz_leap() relies on non-portable C library behaviour. Specifically, mktime is not required to return '60' in the tm_sec field when a leap second is inserted leading to "Timezone right/UTC failed leap second check, ignoring" errors on musl based systems. This patch adds support for getting leap second information from the leap-seconds.list file included with tzdata and adds a new configuration directive leapseclist to switch on the feature. - - - - - 637b77d1 by Patrick Oppenlander at 2024-02-08T15:54:24+01:00 test: add leapdb unit test - - - - - 6cf9fe2f by Miroslav Lichvar at 2024-02-08T15:54:24+01:00 test: improve 113-leapsecond and 124-tai tests Use leapseclist instead of leapsectz and test also negative leap seconds. Add a test for leapsectz when the date command indicates right/UTC is available on the system and mktime() works as expected. Check TAI offset in the server's log. - - - - - 008dc167 by Miroslav Lichvar at 2024-02-08T16:21:42+01:00 examples: switch chrony.conf examples to leapseclist - - - - - 30 changed files: - Makefile.in - candm.h - client.c - cmdmon.c - cmdparse.c - cmdparse.h - conf.c - conf.h - doc/chrony.conf.adoc - doc/chronyc.adoc - examples/chrony.conf.example2 - examples/chrony.conf.example3 - + leapdb.c - + leapdb.h - main.c - ntp_core.c - ntp_sources.c - ntp_sources.h - pktlength.c - refclock.c - reference.c - reports.h - stubs.c - test/simulation/110-chronyc - test/simulation/113-leapsecond - test/simulation/124-tai - test/system/007-cmdmon - + test/unit/leapdb.c - + test/unit/leapdb.list - test/unit/ntp_sources.c View it on GitLab: https://gitlab.com/chrony/chrony/-/compare/e11b518a1ffa704986fb1f1835c425844ba248ef...008dc16727dda8fedbb5b67bb83672e1c24565fc -- View it on GitLab: https://gitlab.com/chrony/chrony/-/compare/e11b518a1ffa704986fb1f1835c425844ba248ef...008dc16727dda8fedbb5b67bb83672e1c24565fc You're receiving this email because of your account on gitlab.com.