added CHILD_SA states, which allows us to detect further simultaneous transactions

reimplemented the buggy message id handling
This commit is contained in:
Martin Willi
2006-07-13 08:26:54 +00:00
parent cb5c41cde9
commit bcb95ced3d
18 changed files with 241 additions and 134 deletions
+12 -4
View File
@@ -86,22 +86,22 @@ enum ike_sa_state_t {
/**
* IKE_SA just got created, but is not initiating nor responding yet.
*/
SA_CREATED,
IKE_CREATED,
/**
* IKE_SA gets initiated actively or passively
*/
SA_CONNECTING,
IKE_CONNECTING,
/**
* IKE_SA is fully established
*/
SA_ESTABLISHED,
IKE_ESTABLISHED,
/**
* IKE_SA is in progress of deletion
*/
SA_DELETING,
IKE_DELETING,
};
/**
@@ -210,6 +210,14 @@ struct ike_sa_t {
*/
status_t (*process_message) (ike_sa_t *this, message_t *message);
/**
* @brief Get the next message ID for a request.
*
* @param this calling object
* @return the next message id
*/
u_int32_t (*get_next_message_id) (ike_sa_t *this);
/**
* @brief Check if NAT traversal is enabled for this IKE_SA.
*