using dpd actions to enforce connection state

dpd actions a per child-, not peer ike-sa
This commit is contained in:
Martin Willi
2008-04-11 08:14:48 +00:00
parent 4a6474c2c3
commit 96926b006d
12 changed files with 264 additions and 239 deletions
+11 -2
View File
@@ -115,7 +115,7 @@ enum ike_condition_t {
/**
* received a certificate request from the peer
*/
COND_CERTREQ_SEEN = (1<<4),
COND_CERTREQ_SEEN = (1<<5),
};
/**
@@ -803,13 +803,22 @@ struct ike_sa_t {
status_t (*rekey) (ike_sa_t *this);
/**
* Restablish the IKE_SA.
* Reauthenticate the IKE_SA.
*
* Create a completely new IKE_SA with authentication, recreates all children
* within the IKE_SA, closes this IKE_SA.
*
* @return DESTROY_ME to destroy the IKE_SA
*/
status_t (*reauth) (ike_sa_t *this);
/**
* Restablish the IKE_SA.
*
* Reestablish an IKE_SA after it has been closed.
*
* @return DESTROY_ME to destroy the IKE_SA
*/
status_t (*reestablish) (ike_sa_t *this);
/**