Need for HW-clock independent timestamps
Matthias Urlichs
matthias at urlichs.de
Wed May 16 09:10:58 CEST 2018
On 15.05.2018 22:49, Kalin KOZHUHAROV wrote:
> [1] Can anyone point me to the piece in code that shows that
> precision? In other words, how far apart can 2 peers' clocks be and
> still connect.
Infinite.
Seriously. The timestamp field is essentially a counter. It just counts
up in rather large time-based increments and happens to be seeded with
the current time, in the current implementation that is. If you forego
all of that, seed it with one, and make sure that there'll never be a
decrement (for instance by saving the current value + a trillion after
every reboot – you don't reboot a router often enough to endanger your
flash that way) you're all set.
--
-- Matthias Urlichs
More information about the WireGuard
mailing list