]> git.ipfire.org Git - thirdparty/chrony.git/commit
ntp: add pre-NTPv5 experimental extension field
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 10 Nov 2021 13:52:04 +0000 (14:52 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 16 Nov 2021 09:23:15 +0000 (10:23 +0100)
commita97ca73704c3add23e52fafe0fa87aca7aaa254e
treec892353e49cc8670d6bd85f58241bf35ea71fc15
parent125d7a5c320c58429586135dab393767f5375917
ntp: add pre-NTPv5 experimental extension field

Add an experimental extension field for some features that were proposed
for NTPv5. Higher-resolution root delay and dispersion (using 28-bit
fraction) are added. A monotonic receive timestamp will allow a
frequency transfer between the server and client. The client will be
able to separate the server's time corrections from frequency
corrections by tracking the offset between the real-time and monotonic
receive timestamps.

The field has a type of 0xF323 from the new experimental range proposed
by the NTP working group. Include a magic 32-bit value in the field to
avoid interoperability issues if a different implementation choses the
same type for its own experimental field. The value will be changed on
incompatible changes to avoid issues between two different chrony
versions.
ntp.h
ntp_core.c