ikev2: Reduce timeout if path probing was enabled
This commit is contained in:
@@ -274,13 +274,20 @@ METHOD(task_manager_t, retransmit, status_t,
|
|||||||
packet = this->initiating.packet->clone(this->initiating.packet);
|
packet = this->initiating.packet->clone(this->initiating.packet);
|
||||||
charon->sender->send(charon->sender, packet);
|
charon->sender->send(charon->sender, packet);
|
||||||
}
|
}
|
||||||
else if (!mobike->transmit(mobike, this->initiating.packet))
|
else
|
||||||
{
|
{
|
||||||
DBG1(DBG_IKE, "no route found to reach peer, MOBIKE update "
|
if (!mobike->transmit(mobike, this->initiating.packet))
|
||||||
"deferred");
|
{
|
||||||
this->ike_sa->set_condition(this->ike_sa, COND_STALE, TRUE);
|
DBG1(DBG_IKE, "no route found to reach peer, MOBIKE update "
|
||||||
this->initiating.deferred = TRUE;
|
"deferred");
|
||||||
return SUCCESS;
|
this->ike_sa->set_condition(this->ike_sa, COND_STALE, TRUE);
|
||||||
|
this->initiating.deferred = TRUE;
|
||||||
|
return SUCCESS;
|
||||||
|
}
|
||||||
|
else if (mobike->is_probing(mobike))
|
||||||
|
{
|
||||||
|
timeout = ROUTEABILITY_CHECK_INTERVAL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user