Clear virtual IPs before storing assigned ones on the IKE_SA

Otherwise we'll end up with duplicate or invalid VIPs stored on the
IKE_SA.
This commit is contained in:
Tobias Brunner
2012-09-05 14:35:57 +02:00
parent 4c892fe533
commit d2e8f20d94
5 changed files with 43 additions and 1 deletions
+7
View File
@@ -941,6 +941,13 @@ struct ike_sa_t {
*/
void (*add_virtual_ip) (ike_sa_t *this, bool local, host_t *ip);
/**
* Clear all virtual IPs stored on this IKE_SA.
*
* @param local TRUE to clear local addresses, FALSE for remote
*/
void (*clear_virtual_ips) (ike_sa_t *this, bool local);
/**
* Create an enumerator over virtual IPs.
*