strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
bdb8b76
)
swanctl: List virtual IPs in --list-sas
author
Tobias Brunner
<tobias@strongswan.org>
Mon, 19 Oct 2015 14:07:39 +0000
(16:07 +0200)
committer
Tobias Brunner
<tobias@strongswan.org>
Tue, 10 Nov 2015 09:43:24 +0000
(10:43 +0100)
src/swanctl/commands/list_sas.c
patch
|
blob
|
history
diff --git
a/src/swanctl/commands/list_sas.c
b/src/swanctl/commands/list_sas.c
index
1aca6d2
..
93dd7ed
100644
(file)
--- 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"));
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"));
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"))
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"));
}
{
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"))
printf("\n");
if (ike->get(ike, "encr-alg"))