mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-04 00:00:14 -04:00
swanctl: Report per-CPU information in --list-sas
This commit is contained in:
parent
c176d32a73
commit
f95bdb6fb0
@ -129,9 +129,18 @@ CALLBACK(child_sas, int,
|
||||
ret = vici_parse_cb(res, NULL, sa_values, sa_list, child);
|
||||
if (ret == 0)
|
||||
{
|
||||
printf(" %s: #%s, reqid %s, %s, %s%s, %s:",
|
||||
printf(" %s: #%s, reqid %s",
|
||||
child->get(child, "name"), child->get(child, "uniqueid"),
|
||||
child->get(child, "reqid"), child->get(child, "state"),
|
||||
child->get(child, "reqid"));
|
||||
|
||||
if (child->get(child, "per-cpu-sas"))
|
||||
{
|
||||
printf(", cpu %s",
|
||||
child->get(child, "cpu") ?: "-");
|
||||
}
|
||||
|
||||
printf(", %s, %s%s, %s:",
|
||||
child->get(child, "state"),
|
||||
child->get(child, "mode"),
|
||||
child->get(child, "encap") ? "-in-UDP" : "",
|
||||
child->get(child, "protocol"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user