[chrony-dev] [Git][chrony/chrony][master] 8 commits: refclock: add SENSOR driver for OpenBSD timedelta sensors

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


Title: GitLab

Miroslav Lichvar pushed to branch master at chrony / chrony

Commits:

  • cff6f1ca
    by Atanas Vladimirov at 2026-07-22T12:10:07+02:00
    refclock: add SENSOR driver for OpenBSD timedelta sensors
    
    OpenBSD does not provide the RFC 2783 PPS API. Instead, serial line
    time sources attached with ldattach(8) (e.g. nmea(4)) and dedicated
    radio clock drivers export a timedelta sensor through the hw.sensors
    sysctl framework, containing the offset of the system clock relative
    to the reference. When the line discipline is configured to timestamp
    a PPS signal on a modem control line (e.g. ldattach -t dcd nmea), the
    kernel timestamps the pulse at interrupt time, making the sensor
    accurate to a few microseconds.
    
    The device is allowed to be missing when chronyd starts (e.g. at
    boot before ldattach attaches the line discipline) and is discovered
    later at the driver polling interval, similarly to OpenBSD ntpd
    rescanning its sensors periodically.
    
    No pledge() changes are needed as hw.sensors sysctl reads are always
    allowed on OpenBSD.
    
    Example:
    
      refclock SENSOR nmea0 refid GPS precision 1e-7 prefer
    
  • 57d2edf6
    by Miroslav Lichvar at 2026-07-23T13:22:35+02:00
    nts: add parameter for maximum NTS-KE retry interval
    
    Add a new parameter to the NAU/NNC functions creating a new NTS instance
    for the maximum NTS-KE retry interval.
    
  • 6920f8a6
    by Miroslav Lichvar at 2026-07-23T13:22:35+02:00
    ntp: add option to configure maximum NTS-KE retry interval
    
    Add "maxntsretry" option to the server/pool directive to specify the
    maximum interval between NTS-KE attempts. The default matches the
    original hardcoded value (19 - 6 days).
    
  • b17a24b4
    by Miroslav Lichvar at 2026-07-23T13:22:35+02:00
    cmdmon: set maxntsretry for new sources
    
    Provide the new maxntsretry option in the cmdmon protocol. With no more
    reserved fields left in the command, allocate a new request number. Add
    8 new reserved fields to avoid changing the request number soon again.
    
  • aa4b91d8
    by Miroslav Lichvar at 2026-07-23T13:22:35+02:00
    cmdmon: reorder fields and flags in new source command
    
    With the new request number, reorder the fields to better follow the
    order of source parameters and reorder the flags to have those that
    enable extension fields in the upper part of the 32-bit field.
    
  • 67f6602e
    by Miroslav Lichvar at 2026-07-23T16:07:06+02:00
    logging: warn if missing debug messages
    
    If chronyd compiled without debugging support (-DEBUG in listed
    features) is started with the "-d -d" or "-L -1" options, log a warning
    message to make it clear why no debug messages will be logged.
    
  • b664ab5a
    by Miroslav Lichvar at 2026-07-23T16:07:08+02:00
    logging: add macro to log message once
    
  • bec51555
    by Miroslav Lichvar at 2026-07-23T16:26:52+02:00
    ntp: warn if no hostnames can be resolved
    
    If no hostnames could be resolved succesfully and the resolving retry
    interval reaches the maximum (about 1 hour after start), log once a
    warning message to indicate there might be a DNS issue.
    

25 changed files:



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/