]> git.ipfire.org Git - thirdparty/chrony.git/commit
ntp: fix processing of kernel timestamps on non-Linux systems
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 22 Aug 2016 11:14:45 +0000 (13:14 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 21 Nov 2016 11:02:51 +0000 (12:02 +0100)
commit12befc2afd43b41c72e982e6b24966965697fcf1
treea2d575f1dcdc37d156e758c9e9298b4f61c7dfb5
parent78f20f7b3e3c424319a02f12f8d5fc16c90d0932
ntp: fix processing of kernel timestamps on non-Linux systems

When the SO_TIMESTAMP socket option was enabled, the expected type of
control messages containing timestamps was SO_TIMESTAMP instead of
SCM_TIMESTAMP. This worked on Linux, where the two values are equal, but
not on the other supported systems. The timestamps were ignored and this
probably worsened the accuracy and stability of the synchronisation.
ntp_io.c