ike: Migrate queued CHILD_SA-creating tasks when reestablishing an IKE_SA

This commit is contained in:
Tobias Brunner
2013-07-17 18:16:58 +02:00
parent b79fdab878
commit 68db844f99
4 changed files with 115 additions and 2 deletions
+8 -1
View File
@@ -202,7 +202,7 @@ struct task_manager_t {
status_t (*retransmit) (task_manager_t *this, u_int32_t message_id);
/**
* Migrate all tasks from other to this.
* Migrate all queued tasks from other to this.
*
* To rekey or reestablish an IKE_SA completely, all queued or active
* tasks should get migrated to the new IKE_SA.
@@ -211,6 +211,13 @@ struct task_manager_t {
*/
void (*adopt_tasks) (task_manager_t *this, task_manager_t *other);
/**
* Migrate all active or queued CHILD_SA-creating tasks from other to this.
*
* @param other manager which gives away its tasks
*/
void (*adopt_child_tasks) (task_manager_t *this, task_manager_t *other);
/**
* Increment a message ID counter, in- or outbound.
*