aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2017-01-06 13:01:34 +0100
committerMartin Willi <martin@strongswan.org>2017-02-13 15:11:20 +0100
commit72547830fbf583aafdaf7bc045c9a818e90c93eb (patch)
treedf1e27f96ff6b499bdb0ce2f549532d34bc692dc /src
parent0b4e539cb3bf3d1e1f3653796da8ce1a2ad9ca57 (diff)
downloadstrongswan-72547830fbf583aafdaf7bc045c9a818e90c93eb.tar.bz2
strongswan-72547830fbf583aafdaf7bc045c9a818e90c93eb.tar.xz
swanctl: List CHILD_SA marks, if set
Diffstat (limited to 'src')
-rw-r--r--src/swanctl/commands/list_sas.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/swanctl/commands/list_sas.c b/src/swanctl/commands/list_sas.c
index e5f251d17..4257c83a5 100644
--- a/src/swanctl/commands/list_sas.c
+++ b/src/swanctl/commands/list_sas.c
@@ -165,6 +165,15 @@ CALLBACK(child_sas, int,
printf(" in %s%s%s", child->get(child, "spi-in"),
child->get(child, "cpi-in") ? "/" : "",
child->get(child, "cpi-in") ?: "");
+ if (child->get(child, "mark-in"))
+ {
+ printf(" (0x%s", child->get(child, "mark-in"));
+ if (child->get(child, "mark-mask-in"))
+ {
+ printf("/0x%s", child->get(child, "mark-mask-in"));
+ }
+ printf(")");
+ }
printf(", %6s bytes, %5s packets",
child->get(child, "bytes-in"), child->get(child, "packets-in"));
if (child->get(child, "use-in"))
@@ -176,6 +185,15 @@ CALLBACK(child_sas, int,
printf(" out %s%s%s", child->get(child, "spi-out"),
child->get(child, "cpi-out") ? "/" : "",
child->get(child, "cpi-out") ?: "");
+ if (child->get(child, "mark-out"))
+ {
+ printf(" (0x%s", child->get(child, "mark-out"));
+ if (child->get(child, "mark-mask-out"))
+ {
+ printf("/0x%s", child->get(child, "mark-mask-out"));
+ }
+ printf(")");
+ }
printf(", %6s bytes, %5s packets",
child->get(child, "bytes-out"), child->get(child, "packets-out"));
if (child->get(child, "use-out"))