daemon: Create global redirect manager instance
This commit is contained in:
@@ -680,6 +680,7 @@ static void destroy(private_daemon_t *this)
|
||||
DESTROY_IF(this->kernel_handler);
|
||||
DESTROY_IF(this->public.traps);
|
||||
DESTROY_IF(this->public.shunts);
|
||||
DESTROY_IF(this->public.redirect);
|
||||
DESTROY_IF(this->public.controller);
|
||||
DESTROY_IF(this->public.eap);
|
||||
DESTROY_IF(this->public.xauth);
|
||||
@@ -872,6 +873,7 @@ private_daemon_t *daemon_create()
|
||||
this->public.socket = socket_manager_create();
|
||||
this->public.traps = trap_manager_create();
|
||||
this->public.shunts = shunt_manager_create();
|
||||
this->public.redirect = redirect_manager_create();
|
||||
this->kernel_handler = kernel_handler_create();
|
||||
|
||||
return this;
|
||||
|
||||
@@ -190,6 +190,7 @@ typedef struct daemon_t daemon_t;
|
||||
#include <sa/child_sa_manager.h>
|
||||
#include <sa/trap_manager.h>
|
||||
#include <sa/shunt_manager.h>
|
||||
#include <sa/redirect_manager.h>
|
||||
#include <config/backend_manager.h>
|
||||
#include <sa/eap/eap_manager.h>
|
||||
#include <sa/xauth/xauth_manager.h>
|
||||
@@ -264,6 +265,11 @@ struct daemon_t {
|
||||
*/
|
||||
shunt_manager_t *shunts;
|
||||
|
||||
/**
|
||||
* Manager for IKE redirect providers
|
||||
*/
|
||||
redirect_manager_t *redirect;
|
||||
|
||||
/**
|
||||
* Manager for the different configuration backends.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user