ikev2: Send retransmits using the latest known addresses

For instance, if a DPD exchange is initiated by the gateway when a
mobile client is roaming and it then gets a new IP address and sends
an address update via MOBIKE, the DPD retransmits would still be sent
to the old address and the SA would eventually get closed.
This commit is contained in:
Tobias Brunner 2014-06-23 10:26:04 +02:00
parent b678d9e14f
commit f1aa18b2e8
1 changed files with 3 additions and 1 deletions

View File

@ -348,7 +348,9 @@ METHOD(task_manager_t, retransmit, status_t,
}
if (!mobike)
{
send_packets(this, this->initiating.packets, NULL, NULL);
send_packets(this, this->initiating.packets,
this->ike_sa->get_my_host(this->ike_sa),
this->ike_sa->get_other_host(this->ike_sa));
}
else
{