diff options
author | Martin Willi <martin@strongswan.org> | 2009-08-31 17:59:00 +0200 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2009-08-31 18:00:28 +0200 |
commit | 6180a55852afaf7fee4086a45dccbff9d7f7dfa8 (patch) | |
tree | 61968edccb4b5b5e39a045b16067299f1e5cda02 /src/charon/kernel/kernel_ipsec.h | |
parent | de5784452b31af3c7342269127a12d352edc0b4e (diff) | |
download | strongswan-6180a55852afaf7fee4086a45dccbff9d7f7dfa8.tar.bz2 strongswan-6180a55852afaf7fee4086a45dccbff9d7f7dfa8.tar.xz |
use time_monotonic() instead of time() for statistics and time difference calculations
Diffstat (limited to 'src/charon/kernel/kernel_ipsec.h')
-rw-r--r-- | src/charon/kernel/kernel_ipsec.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/charon/kernel/kernel_ipsec.h b/src/charon/kernel/kernel_ipsec.h index d6438c197..4abe3bf54 100644 --- a/src/charon/kernel/kernel_ipsec.h +++ b/src/charon/kernel/kernel_ipsec.h @@ -228,13 +228,14 @@ struct kernel_ipsec_t { /** * Query the use time of a policy. * - * The use time of a policy is the time the policy was used - * for the last time. + * The use time of a policy is the time the policy was used for the last + * time. It is not the system time, but a monotonic timestamp as returned + * by time_monotonic. * * @param src_ts traffic selector to match traffic source * @param dst_ts traffic selector to match traffic dest * @param direction direction of traffic, POLICY_IN, POLICY_OUT, POLICY_FWD - * @param[out] use_time the time of this SA's last use + * @param[out] use_time the monotonic timestamp of this SA's last use * @return SUCCESS if operation completed */ status_t (*query_policy) (kernel_ipsec_t *this, |