kernel: Use a time_t to report use time in query_policy()

This commit is contained in:
Martin Willi
2013-10-11 10:23:17 +02:00
parent c99458e94e
commit d7083b6541
11 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -256,7 +256,7 @@ METHOD(kernel_interface_t, add_policy, status_t,
METHOD(kernel_interface_t, query_policy, status_t,
private_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)
{
if (!this->ipsec)
{
+2 -2
View File
@@ -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.
+1 -1
View File
@@ -228,7 +228,7 @@ struct kernel_ipsec_t {
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.