From e4a131b1cee111622c95e856809982c66cf8806c Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Mon, 27 Oct 2014 13:54:51 +0100 Subject: swanctl: List CHILD_SA unique ID as the primary identifier, but print reqid, too --- src/swanctl/commands/list_sas.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/swanctl/commands/list_sas.c') 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")); -- cgit v1.2.3