ike-sa: Add redirect() method to actively redirect an IKE_SA

This commit is contained in:
Tobias Brunner
2016-03-04 16:02:59 +01:00
parent 0840385b27
commit 71c7070588
2 changed files with 50 additions and 0 deletions
+9
View File
@@ -852,6 +852,15 @@ struct ike_sa_t {
*/
void (*send_keepalive) (ike_sa_t *this, bool scheduled);
/**
* Redirect an active IKE_SA.
*
* @param gateway gateway ID (IP or FQDN) of the target
* @return state, including DESTROY_ME, if this IKE_SA MUST be
* destroyed
*/
status_t (*redirect)(ike_sa_t *this, identification_t *gateway);
/**
* Handle a redirect request.
*