Passing 0 to segments->(de-)activate enables/disables all segments

This commit is contained in:
Martin Willi
2010-04-07 13:55:14 +02:00
committed by Martin Willi
parent 7ceaf50b05
commit c573b11c55
2 changed files with 54 additions and 36 deletions
@@ -37,14 +37,14 @@ struct ha_sync_segments_t {
* This involves moving all SAs to the daemons IKE_SA manager and handle
* them actively now.
*
* @param segment numerical segments to takeover
* @param segment numerical segment to takeover, 0 for all
*/
void (*activate)(ha_sync_segments_t *this, u_int segment);
/**
* Deactivate a set of IKE_SAs identified by a segments.
*
* @param segment numerical segments to takeover
* @param segment numerical segment to takeover, 0 for all
*/
void (*deactivate)(ha_sync_segments_t *this, u_int segment);