]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
ike-sa-manager: Log SPIs when checking in an IKE_SA
authorTobias Brunner <tobias@strongswan.org>
Mon, 16 Jul 2018 13:48:30 +0000 (15:48 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 29 Jun 2022 08:28:50 +0000 (10:28 +0200)
src/libcharon/sa/ike_sa_manager.c

index 743e0ddde98b8fe184825cffe7373adf71ca977f..e860784de9928dcfc23c7354c101746e4c1dfa4f 100644 (file)
@@ -1879,8 +1879,12 @@ METHOD(ike_sa_manager_t, checkin, void,
        other_id = ike_sa->get_other_eap_id(ike_sa);
        other = ike_sa->get_other_host(ike_sa);
 
-       DBG2(DBG_MGR, "checkin IKE_SA %s[%u]", ike_sa->get_name(ike_sa),
-                       ike_sa->get_unique_id(ike_sa));
+       DBG2(DBG_MGR, "checkin %N SA %s[%u] with SPIs %.16"PRIx64"_i "
+                "%.16"PRIx64"_r", ike_version_names,
+                ike_sa_id->get_ike_version(ike_sa_id), ike_sa->get_name(ike_sa),
+                ike_sa->get_unique_id(ike_sa),
+                be64toh(ike_sa_id->get_initiator_spi(ike_sa_id)),
+                be64toh(ike_sa_id->get_responder_spi(ike_sa_id)));
 
        /* look for the entry */
        if (get_entry_by_sa(this, ike_sa_id, ike_sa, &entry, &segment) == SUCCESS)