From f1aa18b2e841e065eacb0d2c4f17c3546912c358 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Mon, 23 Jun 2014 10:26:04 +0200 Subject: [PATCH] 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. --- src/libcharon/sa/ikev2/task_manager_v2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libcharon/sa/ikev2/task_manager_v2.c b/src/libcharon/sa/ikev2/task_manager_v2.c index 9b57d2ced..eb7df3516 100644 --- a/src/libcharon/sa/ikev2/task_manager_v2.c +++ b/src/libcharon/sa/ikev2/task_manager_v2.c @@ -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 {