added HA resync option to (re-)integrate nodes to a cluster

This commit is contained in:
Martin Willi
2010-04-07 13:55:12 +02:00
committed by Martin Willi
parent c81f4fa29d
commit 9ffcbea6f1
3 changed files with 104 additions and 8 deletions
+16 -4
View File
@@ -39,16 +39,28 @@ struct ha_sync_segments_t {
* This involves moving all SAs to the daemons IKE_SA manager and handle
* them actively now.
*
* @param segments numerical segments to takeover
* @param segment numerical segments to takeover
*/
void (*activate)(ha_sync_segments_t *this, u_int segments);
void (*activate)(ha_sync_segments_t *this, u_int segment);
/**
* Deactivate a set of IKE_SAs identified by a segments.
*
* @param segments numerical segments to takeover
* @param segment numerical segments to takeover
*/
void (*deactivate)(ha_sync_segments_t *this, u_int segments);
void (*deactivate)(ha_sync_segments_t *this, u_int segment);
/**
* Resync an active segment.
*
* To reintegrade a node into the cluster, resynchronization is reqired.
* IKE_SAs and CHILD_SAs are synced automatically during rekeying. A call
* to this method enforces a rekeying immediately sync all state of a
* segment.
*
* @param segment segment to resync
*/
void (*resync)(ha_sync_segments_t *this, u_int segment);
/**
* Destroy a ha_sync_segments_t.