vici: Include configured local and remote ports in list-conns
Closes strongswan/strongswan#2869
This commit is contained in:
committed by
Tobias Brunner
parent
b36da850b5
commit
a24dc2e9ad
@@ -882,6 +882,8 @@ _list-conns_ command.
|
||||
remote_addrs = [
|
||||
<list of valid remote IKE endpoint addresses>
|
||||
]
|
||||
local_port = <local IKE endpoint port>
|
||||
remote_port = <remote IKE endpoint port>
|
||||
version = <IKE version as string, IKEv1|IKEv2 or 0 for any>
|
||||
reauth_time = <IKE_SA reauthentication interval in seconds>
|
||||
rekey_time = <IKE_SA rekeying interval in seconds>
|
||||
|
||||
@@ -956,6 +956,11 @@ CALLBACK(list_conns, vici_message_t*,
|
||||
tokens->destroy(tokens);
|
||||
b->end_list(b);
|
||||
|
||||
b->add_kv(b, "local_port", "%u",
|
||||
ike_cfg->get_my_port(ike_cfg));
|
||||
b->add_kv(b, "remote_port", "%u",
|
||||
ike_cfg->get_other_port(ike_cfg));
|
||||
|
||||
b->add_kv(b, "version", "%N", ike_version_names,
|
||||
peer_cfg->get_ike_version(peer_cfg));
|
||||
b->add_kv(b, "reauth_time", "%u",
|
||||
|
||||
Reference in New Issue
Block a user