]> 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>
Tue, 14 May 2019 09:13:04 +0000 (11:13 +0200)
src/libcharon/sa/ike_sa_manager.c

index 1de410d6c0c9754327cbbaffc0a4912bfb5cc552..e4ceafee3e1f86638d585ded901fd557523fd717 100644 (file)
@@ -1746,8 +1746,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)