aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2014-10-27 13:54:51 +0100
committerMartin Willi <martin@revosec.ch>2015-02-20 13:34:50 +0100
commite4a131b1cee111622c95e856809982c66cf8806c (patch)
treecbbad45392d7e9120ceeae45d4eaea2424f19568 /src
parent53cf7fa60a45b8ae46440b9f03baab0e56fb7a52 (diff)
downloadstrongswan-e4a131b1cee111622c95e856809982c66cf8806c.tar.bz2
strongswan-e4a131b1cee111622c95e856809982c66cf8806c.tar.xz
swanctl: List CHILD_SA unique ID as the primary identifier, but print reqid, too
Diffstat (limited to 'src')
-rw-r--r--src/swanctl/commands/list_sas.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/swanctl/commands/list_sas.c b/src/swanctl/commands/list_sas.c
index 35e7469a9..55297cff3 100644
--- a/src/swanctl/commands/list_sas.c
+++ b/src/swanctl/commands/list_sas.c
@@ -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"));