aboutsummaryrefslogtreecommitdiffstats
path: root/src/libhydra/kernel/kernel_interface.h
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2013-04-21 17:05:08 +0200
committerMartin Willi <martin@revosec.ch>2013-05-06 17:01:13 +0200
commit5c12700f9abc5efeb38d18a46edf152894476e8c (patch)
tree6ce337b522191636323bbd7638238afed6ff736f /src/libhydra/kernel/kernel_interface.h
parentbdaf9f97e6cd3e97f4b947e8748efd5b34c4c72e (diff)
downloadstrongswan-5c12700f9abc5efeb38d18a46edf152894476e8c.tar.bz2
strongswan-5c12700f9abc5efeb38d18a46edf152894476e8c.tar.xz
kernel-interface: query SAD for last use time if SPD query didn't yield one
Diffstat (limited to 'src/libhydra/kernel/kernel_interface.h')
-rw-r--r--src/libhydra/kernel/kernel_interface.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libhydra/kernel/kernel_interface.h b/src/libhydra/kernel/kernel_interface.h
index fd64f50c2..b333cae99 100644
--- a/src/libhydra/kernel/kernel_interface.h
+++ b/src/libhydra/kernel/kernel_interface.h
@@ -197,11 +197,12 @@ struct kernel_interface_t {
* @param mark optional mark for this SA
* @param[out] bytes the number of bytes processed by SA
* @param[out] packets number of packets processed by SA
+ * @param[out] time last time of SA use
* @return SUCCESS if operation completed
*/
status_t (*query_sa) (kernel_interface_t *this, host_t *src, host_t *dst,
u_int32_t spi, u_int8_t protocol, mark_t mark,
- u_int64_t *bytes, u_int64_t *packets);
+ u_int64_t *bytes, u_int64_t *packets, u_int32_t *time);
/**
* Delete a previously installed SA from the SAD.