mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-08 00:02:03 -04:00
ikev2: Reduce timeout if path probing was enabled
This commit is contained in:
parent
de6ab8e85a
commit
acd69fc291
@ -274,7 +274,9 @@ 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
|
||||||
|
{
|
||||||
|
if (!mobike->transmit(mobike, this->initiating.packet))
|
||||||
{
|
{
|
||||||
DBG1(DBG_IKE, "no route found to reach peer, MOBIKE update "
|
DBG1(DBG_IKE, "no route found to reach peer, MOBIKE update "
|
||||||
"deferred");
|
"deferred");
|
||||||
@ -282,6 +284,11 @@ METHOD(task_manager_t, retransmit, status_t,
|
|||||||
this->initiating.deferred = TRUE;
|
this->initiating.deferred = TRUE;
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
|
else if (mobike->is_probing(mobike))
|
||||||
|
{
|
||||||
|
timeout = ROUTEABILITY_CHECK_INTERVAL;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{ /* for routeability checks, we use a more aggressive behavior */
|
{ /* for routeability checks, we use a more aggressive behavior */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user