Setting message ID on task manager sets DPD sequence numbers in IKEv1

This commit is contained in:
Martin Willi
2012-03-20 17:31:38 +01:00
parent 783c496966
commit fd6fbf1764
2 changed files with 12 additions and 2 deletions
+8
View File
@@ -1393,6 +1393,14 @@ METHOD(task_manager_t, reset, void,
this->initiating.seqnr = 0;
this->initiating.retransmitted = 0;
this->initiating.type = EXCHANGE_TYPE_UNDEFINED;
if (initiate != UINT_MAX)
{
this->dpd_send = initiate;
}
if (respond != UINT_MAX)
{
this->dpd_recv = respond;
}
/* reset queued tasks */
enumerator = this->queued_tasks->create_enumerator(this->queued_tasks);