[Swan-dev] hi resolution time in log file
andrew.cagney at gmail.com
Thu Nov 2 13:56:24 UTC 2017
On 30 October 2017 at 15:16, D. Hugh Redelmeier <hugh at mimosa.com> wrote:
> | From: Andrew Cagney <andrew.cagney at gmail.com>
> | As for monotime_t I don't know what it is trying to do so I'll ignore it;
> | perhaps clock_gettime(CLOCK_MONOTONIC)?
Turns out there was a mononow() function hiding in pluto/defs.[hc], and it
used CLOCK_MONOTONIC. I've moved it to libswan/monotime.c.
If I remember (I'm sitting in a waiting room so I don't want to check)
> - various clocks can jump backwards on UNIX/LINUX
> - this causes all kinds of problems with timeouts observable in the
> Real World
> - we detect backward jumps and compensate for them
> - unfortunately we have no way to detect forward jumps
> Swan-dev mailing list
> Swan-dev at lists.libreswan.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Swan-dev