]> git.ipfire.org Git - thirdparty/chrony.git/commit
ntp: separate timestamps for restarting symmetric protocol
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 16 Feb 2018 16:07:56 +0000 (17:07 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 26 Feb 2018 12:42:04 +0000 (13:42 +0100)
commitf0f18a02a7d97a3cfb4cd9977f5ec12c6b1f1028
tree4ca0901e4d4a0d4b600860dbc47be1acefaf990d
parentc5d8af028581a8cdb68ebdd7a314454cc5eeb8ec
ntp: separate timestamps for restarting symmetric protocol

Save the local receive and remote transmit timestamp needed for
(re)starting the symmetric protocol when no valid reply was received
separately from the timestamps that are used for synchronization of the
local clock.

This extends the interval in which the local NTP state is (partially)
protected against replay attacks in order to complete a measurement
in the interleaved symmetric mode from [last valid RX, next TX] to
[last TX, next TX], i.e. it should be the same as in the basic mode.
ntp_core.c
test/unit/ntp_core.c