controller: Add option to force destruction of an IKE_SA

It's optionally possible to wait for a timeout to destroy the SA.
This commit is contained in:
Tobias Brunner
2018-05-22 10:06:07 +02:00
parent a79d510354
commit 7b72909774
11 changed files with 45 additions and 20 deletions
+6 -1
View File
@@ -102,6 +102,11 @@ struct controller_t {
* until the IKE_SA is properly deleted, or the call timed out.
*
* @param unique_id unique id of the IKE_SA to terminate.
* @param force whether to immediately destroy the IKE_SA without
* waiting for a response or retransmitting the delete,
* if a callback is provided and timeout is > 0 the
* IKE_SA is destroyed once the timeout is reached but
* retransmits are sent until then
* @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
@@ -112,7 +117,7 @@ struct controller_t {
* - OUT_OF_RES if timed out
*/
status_t (*terminate_ike)(controller_t *this, uint32_t unique_id,
controller_cb_t callback, void *param,
bool force, controller_cb_t callback, void *param,
u_int timeout);
/**