swanctl: List CHILD_SA unique ID as the primary identifier, but print reqid, too
authorMartin Willi <martin@revosec.ch>
Mon, 27 Oct 2014 12:54:51 +0000 (13:54 +0100)
committerMartin Willi <martin@revosec.ch>
Fri, 20 Feb 2015 12:34:50 +0000 (13:34 +0100)
src/swanctl/commands/list_sas.c

index 35e7469..55297cf 100644 (file)
@@ -86,8 +86,8 @@ CALLBACK(child_sas, int,
        ret = vici_parse_cb(res, NULL, sa_values, sa_list, child);
        if (ret == 0)
        {
-               printf("  %s: #%s, %s, %s%s, %s:",
-                       name, child->get(child, "reqid"),
+               printf("  %s: #%s, reqid %s, %s, %s%s, %s:",
+                       name, child->get(child, "uniqueid"), child->get(child, "reqid"),
                        child->get(child, "state"), child->get(child, "mode"),
                        child->get(child, "encap") ? "-in-UDP" : "",
                        child->get(child, "protocol"));