aboutsummaryrefslogtreecommitdiffstats
path: root/src/libhydra/kernel/kernel_interface.h
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2013-10-11 10:24:27 +0200
committerMartin Willi <martin@revosec.ch>2013-10-11 10:25:35 +0200
commit11282d0054d8a51f184a6f726f7f180ccf60e456 (patch)
tree8d7cceebfa783449fbe3d164cb0cdd5c3e2cafcc /src/libhydra/kernel/kernel_interface.h
parentb59bcba2b38dda5f0f6301b7ae90acc58b4a069b (diff)
parentd53002f088c588bb65215bb9a6e5100ba321738e (diff)
downloadstrongswan-11282d0054d8a51f184a6f726f7f180ccf60e456.tar.bz2
strongswan-11282d0054d8a51f184a6f726f7f180ccf60e456.tar.xz
Merge branch 'libipsec-usestats'
Brings SA usage statistics and volume based expiration to libipsec and the associated kernel-libipsec plugin. Additionally removes any ESPv3 style TFC padding found in incoming packets.
Diffstat (limited to 'src/libhydra/kernel/kernel_interface.h')
-rw-r--r--src/libhydra/kernel/kernel_interface.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libhydra/kernel/kernel_interface.h b/src/libhydra/kernel/kernel_interface.h
index 1d96f1c35..cc47d3c4a 100644
--- a/src/libhydra/kernel/kernel_interface.h
+++ b/src/libhydra/kernel/kernel_interface.h
@@ -200,12 +200,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
+ * @param[out] time last (monotonic) 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_int32_t *time);
+ u_int64_t *bytes, u_int64_t *packets, time_t *time);
/**
* Delete a previously installed SA from the SAD.
@@ -264,14 +264,14 @@ struct kernel_interface_t {
* @param dst_ts traffic selector to match traffic dest
* @param direction direction of traffic, POLICY_(IN|OUT|FWD)
* @param mark optional mark
- * @param[out] use_time the time of this SA's last use
+ * @param[out] use_time the (monotonic) time of this SA's last use
* @return SUCCESS if operation completed
*/
status_t (*query_policy) (kernel_interface_t *this,
traffic_selector_t *src_ts,
traffic_selector_t *dst_ts,
policy_dir_t direction, mark_t mark,
- u_int32_t *use_time);
+ time_t *use_time);
/**
* Remove a policy from the SPD.