swanctl: List CHILD_SA unique ID as the primary identifier, but print reqid, too
This commit is contained in:
@@ -86,8 +86,8 @@ CALLBACK(child_sas, int,
|
|||||||
ret = vici_parse_cb(res, NULL, sa_values, sa_list, child);
|
ret = vici_parse_cb(res, NULL, sa_values, sa_list, child);
|
||||||
if (ret == 0)
|
if (ret == 0)
|
||||||
{
|
{
|
||||||
printf(" %s: #%s, %s, %s%s, %s:",
|
printf(" %s: #%s, reqid %s, %s, %s%s, %s:",
|
||||||
name, child->get(child, "reqid"),
|
name, child->get(child, "uniqueid"), child->get(child, "reqid"),
|
||||||
child->get(child, "state"), child->get(child, "mode"),
|
child->get(child, "state"), child->get(child, "mode"),
|
||||||
child->get(child, "encap") ? "-in-UDP" : "",
|
child->get(child, "encap") ? "-in-UDP" : "",
|
||||||
child->get(child, "protocol"));
|
child->get(child, "protocol"));
|
||||||
|
|||||||
Reference in New Issue
Block a user