diff options
Diffstat (limited to 'src/charon/sa/child_sa.h')
-rw-r--r-- | src/charon/sa/child_sa.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/charon/sa/child_sa.h b/src/charon/sa/child_sa.h index 3b4e0e306..559e57c9a 100644 --- a/src/charon/sa/child_sa.h +++ b/src/charon/sa/child_sa.h @@ -240,17 +240,19 @@ struct child_sa_t { * Get last use time of the CHILD_SA. * * @param inbound TRUE for inbound traffic, FALSE for outbound + * @param update update time of last use via kernel query * @return time of last use in seconds */ - u_int32_t (*get_usetime)(child_sa_t *this, bool inbound); + u_int32_t (*get_usetime)(child_sa_t *this, bool inbound, bool update); /** * Get number of bytes processed by CHILD_SA. * - * @param inbound TRUE for inbound traffic, FALSE for outbound - * @return number of processed bytes + * @param inbound TRUE for inbound traffic, FALSE for outbound + * @param[out] change TRUE if change since last query, FALSE else + * @return number of processed bytes */ - u_int64_t (*get_usebytes)(child_sa_t *this, bool inbound); + u_int64_t (*get_usebytes)(child_sa_t *this, bool inbound, bool *change); /** * Get the traffic selectors list added for one side. |