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

This commit is contained in:
Martin Willi
2013-10-11 10:23:17 +02:00
parent b59bcba2b3
commit c99458e94e
11 changed files with 15 additions and 15 deletions
@@ -268,7 +268,7 @@ METHOD(kernel_ipsec_t, update_sa, status_t,
METHOD(kernel_ipsec_t, query_sa, status_t,
private_kernel_libipsec_ipsec_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 *packets, time_t *time)
{
return NOT_SUPPORTED;
}
@@ -71,7 +71,7 @@ METHOD(kernel_ipsec_t, update_sa, status_t,
METHOD(kernel_ipsec_t, query_sa, status_t,
private_load_tester_ipsec_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)
{
return NOT_SUPPORTED;
}
+3 -3
View File
@@ -167,12 +167,12 @@ struct private_child_sa_t {
/**
* time of last use in seconds (inbound)
*/
u_int32_t my_usetime;
time_t my_usetime;
/**
* time of last use in seconds (outbound)
*/
u_int32_t other_usetime;
time_t other_usetime;
/**
* last number of inbound bytes
@@ -429,7 +429,7 @@ static status_t update_usebytes(private_child_sa_t *this, bool inbound)
{
status_t status = FAILED;
u_int64_t bytes, packets;
u_int32_t time;
time_t time;
if (inbound)
{