Commit b5f17f2e3e for strongswan.org
commit b5f17f2e3e082f391a33fdfece5a9ff4e083983c
Author: Tobias Brunner <tobias@strongswan.org>
Date: Fri Nov 27 17:01:03 2026 +0100
ikev2: Don't consider retransmits as peer activity
If our response doesn't reach the peer, we might want to check that with
a DPD ourselves. And the retransmit is not necessary coming from the
peer.
diff --git a/src/libcharon/sa/ikev2/task_manager_v2.c b/src/libcharon/sa/ikev2/task_manager_v2.c
index 1ee32279d7..c745ff3253 100644
--- a/src/libcharon/sa/ikev2/task_manager_v2.c
+++ b/src/libcharon/sa/ikev2/task_manager_v2.c
@@ -1876,8 +1876,6 @@ METHOD(task_manager_t, process_message, status_t,
case ALREADY_DONE:
DBG1(DBG_IKE, "received retransmit of request with ID %d, "
"retransmitting response", mid);
- this->ike_sa->set_statistic(this->ike_sa, STAT_INBOUND,
- time_monotonic(NULL));
charon->bus->alert(charon->bus, ALERT_RETRANSMIT_RECEIVE, msg);
send_packets(this, this->responding.packets,
msg->get_destination(msg), msg->get_source(msg));