aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2015-10-19 16:07:39 +0200
committerTobias Brunner <tobias@strongswan.org>2015-11-10 10:43:24 +0100
commit304a9a97e86d37d09ec6c760c36539d2ec81d99e (patch)
tree688790a8f53442f60623227144d4ad142bc196eb
parentbdb8b76515df7dc86955a06581239596f60194d2 (diff)
downloadstrongswan-304a9a97e86d37d09ec6c760c36539d2ec81d99e.tar.bz2
strongswan-304a9a97e86d37d09ec6c760c36539d2ec81d99e.tar.xz
swanctl: List virtual IPs in --list-sas
-rw-r--r--src/swanctl/commands/list_sas.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/swanctl/commands/list_sas.c b/src/swanctl/commands/list_sas.c
index 1aca6d212..93dd7ed85 100644
--- a/src/swanctl/commands/list_sas.c
+++ b/src/swanctl/commands/list_sas.c
@@ -198,8 +198,14 @@ CALLBACK(ike_sa, int,
ike->get(ike, "state"), ike->get(ike, "version"),
ike->get(ike, "initiator-spi"), ike->get(ike, "responder-spi"));
- printf(" local '%s' @ %s\n",
+ printf(" local '%s' @ %s",
ike->get(ike, "local-id"), ike->get(ike, "local-host"));
+ if (ike->get(ike, "local-vips"))
+ {
+ printf(" [%s]", ike->get(ike, "local-vips"));
+ }
+ printf("\n");
+
printf(" remote '%s' @ %s",
ike->get(ike, "remote-id"), ike->get(ike, "remote-host"));
if (ike->get(ike, "remote-eap-id"))
@@ -210,6 +216,10 @@ CALLBACK(ike_sa, int,
{
printf(" XAuth: '%s'", ike->get(ike, "remote-xauth-id"));
}
+ if (ike->get(ike, "remote-vips"))
+ {
+ printf(" [%s]", ike->get(ike, "remote-vips"));
+ }
printf("\n");
if (ike->get(ike, "encr-alg"))