diff options
author | Tobias Brunner <tobias@strongswan.org> | 2015-08-21 18:21:24 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2015-08-21 18:21:24 +0200 |
commit | d88cec920c9def7ed2d9906858f4b88a4b46a730 (patch) | |
tree | cc5798460efe4618077e8b17694ed6340071b6d4 /src/libcharon/control/controller.h | |
parent | ffa20bad6356732e840aaffc6f9ef8fd1e6eb88e (diff) | |
parent | 256e666d2235718a3711cf7ad9634354c10f7a7e (diff) | |
download | strongswan-d88cec920c9def7ed2d9906858f4b88a4b46a730.tar.bz2 strongswan-d88cec920c9def7ed2d9906858f4b88a4b46a730.tar.xz |
Merge branch 'init-limits'
IKE_SAs that are initiated are now counted towards the half-open IKE_SAs
limit. Optionally it is possible to enforce limits towards the number of
half-open IKE_SAs and the job load also when initiating SAs. This is
currently only possible via VICI.
Diffstat (limited to 'src/libcharon/control/controller.h')
-rw-r--r-- | src/libcharon/control/controller.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libcharon/control/controller.h b/src/libcharon/control/controller.h index 02f4ebb2b..5ffeac522 100644 --- a/src/libcharon/control/controller.h +++ b/src/libcharon/control/controller.h @@ -82,15 +82,18 @@ struct controller_t { * @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 + * @param limits whether to check limits regarding IKE_SA initiation * @return * - SUCCESS, if CHILD_SA established * - FAILED, if setup failed * - NEED_MORE, if callback returned FALSE * - OUT_OF_RES if timed out + * - INVALID_STATE if limits prevented initiation */ status_t (*initiate)(controller_t *this, peer_cfg_t *peer_cfg, child_cfg_t *child_cfg, - controller_cb_t callback, void *param, u_int timeout); + controller_cb_t callback, void *param, u_int timeout, + bool limits); /** * Terminate an IKE_SA and all of its CHILD_SAs. |