On 30 October 2017 at 15:16, D. Hugh Redelmeier <[email protected]> wrote:

> | From: Andrew Cagney <[email protected]>
>
> | 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
> [email protected]
> https://lists.libreswan.org/mailman/listinfo/swan-dev
>
_______________________________________________
Swan-dev mailing list
[email protected]
https://lists.libreswan.org/mailman/listinfo/swan-dev

Reply via email to