adapted format of IKE SPIs to strongSwan Manager's style
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sat, 15 Sep 2007 15:35:02 +0000 (15:35 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sat, 15 Sep 2007 15:35:02 +0000 (15:35 -0000)
src/charon/control/interfaces/stroke_interface.c

index 0da6465..1a82724 100755 (executable)
@@ -1100,10 +1100,10 @@ static void log_ike_sa(FILE *out, ike_sa_t *ike_sa, bool all)
        
        if (all)
        {
-               fprintf(out, "%12s[%d]: IKE SPIs: 0x%0llx_i%s 0x%0llx_r%s, ",
+               fprintf(out, "%12s[%d]: IKE SPIs: %0llx_i%s %0llx_r%s, ",
                                ike_sa->get_name(ike_sa), ike_sa->get_unique_id(ike_sa),
                                id->get_initiator_spi(id), id->is_initiator(id) ? "*" : "",
-                               id->get_responder_spi(id), id->is_initiator(id) ? "" : "");
+                               id->get_responder_spi(id), id->is_initiator(id) ? "" : "*");
        
                ike_sa->get_stats(ike_sa, &next);
                if (next)