Confirm message reception time only if DPD sequence number valid

This commit is contained in:
Martin Willi
2012-03-20 17:31:35 +01:00
parent 2ddd45c9a7
commit ff6b084ac4
2 changed files with 10 additions and 3 deletions
@@ -91,6 +91,8 @@ METHOD(task_t, process, status_t,
seqnr = untoh32(chunk.ptr);
if (seqnr == this->seqnr)
{
this->ike_sa->set_statistic(this->ike_sa, STAT_INBOUND,
time_monotonic(NULL));
if (!this->initiator)
{ /* queue DPD_ACK */
this->ike_sa->queue_task(this->ike_sa,