Allow IKEv1 tasks to return ALREADY_DONE to flush all active or passive tasks

This commit is contained in:
Martin Willi
2012-03-20 17:31:18 +01:00
parent 0f61964ed7
commit 590ca1d482
2 changed files with 23 additions and 10 deletions
+2
View File
@@ -121,6 +121,7 @@ struct task_t {
* - FAILED if a critical error occurred
* - DESTROY_ME if IKE_SA has been properly deleted
* - NEED_MORE if another call to build/process needed
* - ALREADY_DONE to cancel all active or passive tasks
* - SUCCESS if task completed
*/
status_t (*build) (task_t *this, message_t *message);
@@ -133,6 +134,7 @@ struct task_t {
* - FAILED if a critical error occurred
* - DESTROY_ME if IKE_SA has been properly deleted
* - NEED_MORE if another call to build/process needed
* - ALREADY_DONE to cancel all active or passive tasks
* - SUCCESS if task completed
*/
status_t (*process) (task_t *this, message_t *message);