swanctl: Report labels in --list-* commands

This commit is contained in:
Tobias Brunner
2022-04-14 18:42:01 +02:00
parent 2994347d18
commit b67f7fb861
5 changed files with 37 additions and 1 deletions
+2 -1
View File
@@ -43,6 +43,7 @@
#include <errno.h>
#include "command.h"
#include "swanctl.h"
#include <collections/hashtable.h>
@@ -81,7 +82,6 @@ CALLBACK(sa_values, int,
return 0;
}
CALLBACK(sa_list, int,
hashtable_t *sa, vici_res_t *res, char *name, void *value, int len)
{
@@ -227,6 +227,7 @@ CALLBACK(child_sas, int,
}
printf("\n");
print_label(" label ", child->get(child, "label"));
printf(" local %s\n", child->get(child, "local-ts"));
printf(" remote %s\n", child->get(child, "remote-ts"));
}