ike-init: Log the IKE SA's unique identifier when creating one as responder

The name will not be defined yet, but we have a similar message as
initiator so use the same format.
This commit is contained in:
Tobias Brunner
2026-04-16 15:32:54 +02:00
parent 1ee7e10940
commit 7f6fc50ba3
+4 -2
View File
@@ -837,7 +837,7 @@ METHOD(task_t, build_i, status_t,
ike_cfg = this->ike_sa->get_ike_cfg(this->ike_sa);
DBG0(DBG_IKE, "initiating IKE_SA %s[%d] to %H",
DBG0(DBG_IKE, "initiating IKE_SA %s[%u] to %H",
this->ike_sa->get_name(this->ike_sa),
this->ike_sa->get_unique_id(this->ike_sa),
this->ike_sa->get_other_host(this->ike_sa));
@@ -962,7 +962,9 @@ METHOD(task_t, process_r_multi_ke, status_t,
METHOD(task_t, process_r, status_t,
private_ike_init_t *this, message_t *message)
{
DBG0(DBG_IKE, "%H is initiating an IKE_SA", message->get_source(message));
DBG0(DBG_IKE, "%H is initiating IKE_SA %s[%u]",
message->get_source(message), this->ike_sa->get_name(this->ike_sa),
this->ike_sa->get_unique_id(this->ike_sa));
this->ike_sa->set_state(this->ike_sa, IKE_CONNECTING);
if (!generate_nonce(this))