]> git.ipfire.org Git - thirdparty/chrony.git/commit
reference: randomize reference time
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 23 Nov 2016 13:03:12 +0000 (14:03 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 25 Nov 2016 16:33:42 +0000 (17:33 +0100)
commitd75f6830f190037421a66754849571fd0b495e35
treead2d20d11d6169d9713d5d5b345c8a4e75756721
parent4d7eb2f7a66f99c8bd09d5e7b9d0d92159ce2c85
reference: randomize reference time

In unauthenticated interleaved symmetric NTP mode we should be now
careful with the reference timestamp as it may be useful with the peer
delay for estimating the local receive timestamp and increasing the
chance of spoofing a valid response from the peer.

When updating the reference time, add a random error of up to one second
to make it less sensitive when disclosed to NTP and cmdmon clients.
reference.c