From: Martin Willi Date: Mon, 27 Oct 2014 12:54:51 +0000 (+0100) Subject: swanctl: List CHILD_SA unique ID as the primary identifier, but print reqid, too X-Git-Tag: 5.3.0dr1~81^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4a131b1cee111622c95e856809982c66cf8806c;p=thirdparty%2Fstrongswan.git swanctl: List CHILD_SA unique ID as the primary identifier, but print reqid, too --- diff --git a/src/swanctl/commands/list_sas.c b/src/swanctl/commands/list_sas.c index 35e7469a9c..55297cff3b 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"));