]> git.ipfire.org Git - thirdparty/chrony.git/commit
util: add support for other NTP eras
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 7 Aug 2014 15:08:19 +0000 (17:08 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 15 Aug 2014 09:18:40 +0000 (11:18 +0200)
commit474b2af1a6259b2953da7eb3f43eb2d8515673cd
tree75fca50c2f2c1a6b0cd552fa4211d10953995baf
parentcb88cea3c45894f28e3aaa8978c0b80e9d43285e
util: add support for other NTP eras

NTP timestamps use only 32 bits to count seconds and the current NTP era
ends in 2036. Add support for converting NTP timestamps from other NTP
eras on systems with 64-bit time_t.

The earliest assumed NTP time is set by the configure script (by default
to 50 years before the date of the build) and earlier NTP timestamps
underflow to the following NTP era.
configure
ntp_core.c
util.c