child_sa_t.get_usestats() can additionally return the number of processed packets
This commit is contained in:
@@ -285,7 +285,7 @@ static time_t get_use_time(private_ike_sa_t* this, bool inbound)
|
||||
enumerator = this->child_sas->create_enumerator(this->child_sas);
|
||||
while (enumerator->enumerate(enumerator, &child_sa))
|
||||
{
|
||||
child_sa->get_usestats(child_sa, inbound, ¤t, NULL);
|
||||
child_sa->get_usestats(child_sa, inbound, ¤t, NULL, NULL);
|
||||
use_time = max(use_time, current);
|
||||
}
|
||||
enumerator->destroy(enumerator);
|
||||
|
||||
Reference in New Issue
Block a user