aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/control/controller.h
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2015-09-21 13:41:58 +0300
committerTimo Teräs <timo.teras@iki.fi>2017-11-20 10:45:02 +0200
commitea546194df7e5d181cdfc1b236e21f973080be51 (patch)
treef9b401bfa8405f99f58159cc73eed25e22cf7bd1 /src/libcharon/control/controller.h
parent1d669ed02aca9e797db9fbca3eb1198dc19c292e (diff)
downloadstrongswan-ea546194df7e5d181cdfc1b236e21f973080be51.tar.bz2
strongswan-ea546194df7e5d181cdfc1b236e21f973080be51.tar.xz
charon: add optional source and remote overrides for initiate
This introduces support for specifying optional IKE SA specific source and remote address for child sa initiation. This allows to initiate wildcard connection for known address via vici. In addition this allows impler implementation of trap-any patches and is a prerequisite for dmvpn support. Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Diffstat (limited to 'src/libcharon/control/controller.h')
-rw-r--r--src/libcharon/control/controller.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libcharon/control/controller.h b/src/libcharon/control/controller.h
index 9524f53b9..7c51ba4ca 100644
--- a/src/libcharon/control/controller.h
+++ b/src/libcharon/control/controller.h
@@ -79,6 +79,8 @@ struct controller_t {
*
* @param peer_cfg peer_cfg to use for IKE_SA setup
* @param child_cfg child_cfg to set up CHILD_SA from
+ * @param my_host optional address hint for source
+ * @param other_host optional address hint for destination
* @param cb logging callback
* @param param parameter to include in each call of cb
* @param timeout timeout in ms to wait for callbacks, 0 to disable
@@ -92,6 +94,7 @@ struct controller_t {
*/
status_t (*initiate)(controller_t *this,
peer_cfg_t *peer_cfg, child_cfg_t *child_cfg,
+ host_t *my_host, host_t *other_host,
controller_cb_t callback, void *param, u_int timeout,
bool limits);