swanctl: List virtual IPs in --list-sas

This commit is contained in:
Tobias Brunner
2015-11-10 10:43:24 +01:00
parent bdb8b76515
commit 304a9a97e8
+11 -1
View File
@@ -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"))