ike: Keep track of send keepalive jobs to avoid scheduling more than one per IKE_SA

This commit is contained in:
Tobias Brunner
2016-03-03 17:15:37 +01:00
parent 34f7d3b7ae
commit efd7fa7be1
3 changed files with 24 additions and 11 deletions
+3 -1
View File
@@ -837,8 +837,10 @@ struct ike_sa_t {
*
* To refresh NAT tables in a NAT router between the peers, periodic empty
* UDP packets are sent if no other traffic was sent.
*
* @param scheduled if this is a scheduled keepalive
*/
void (*send_keepalive) (ike_sa_t *this);
void (*send_keepalive) (ike_sa_t *this, bool scheduled);
/**
* Get the keying material of this IKE_SA.