IKE_SA activation/deactivation magic using a fifo socket
This commit is contained in:
committed by
Martin Willi
parent
c94fe198e9
commit
aa98188af5
@@ -21,6 +21,7 @@
|
||||
#include "ha_sync_socket.h"
|
||||
#include "ha_sync_dispatcher.h"
|
||||
#include "ha_sync_cache.h"
|
||||
#include "ha_sync_ctl.h"
|
||||
|
||||
#include <daemon.h>
|
||||
#include <config/child_cfg.h>
|
||||
@@ -61,6 +62,11 @@ struct private_ha_sync_plugin_t {
|
||||
* Local cache of a nodes synced SAs
|
||||
*/
|
||||
ha_sync_cache_t *cache;
|
||||
|
||||
/**
|
||||
* Segment control interface via FIFO
|
||||
*/
|
||||
ha_sync_ctl_t *ctl;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -73,6 +79,7 @@ static void destroy(private_ha_sync_plugin_t *this)
|
||||
this->ike->destroy(this->ike);
|
||||
this->child->destroy(this->child);
|
||||
this->dispatcher->destroy(this->dispatcher);
|
||||
this->ctl->destroy(this->ctl);
|
||||
this->cache->destroy(this->cache);
|
||||
this->socket->destroy(this->socket);
|
||||
free(this);
|
||||
@@ -94,6 +101,7 @@ plugin_t *plugin_create()
|
||||
return NULL;
|
||||
}
|
||||
this->cache = ha_sync_cache_create();
|
||||
this->ctl = ha_sync_ctl_create(this->cache);
|
||||
this->dispatcher = ha_sync_dispatcher_create(this->socket, this->cache);
|
||||
this->ike = ha_sync_ike_create(this->socket, this->cache);
|
||||
this->child = ha_sync_child_create(this->socket, this->cache);
|
||||
|
||||
Reference in New Issue
Block a user