mod capwap80211 bindings added.
FossilOrigin-Name: 95f7acda203c7c0313e00e0507fa4db0ca1068ecdad43145f4814e466d83e800
This commit is contained in:
parent
6d304c0b8e
commit
c8abeb9cb5
@ -17,6 +17,7 @@ CFLAGS += -Werror -g -O0 -D_REENTRANT -DIPV6 -I/usr/local/include -I../ -DSYS_AR
|
|||||||
LIBS+=-lcapwap
|
LIBS+=-lcapwap
|
||||||
LIBS+=-lcisco
|
LIBS+=-lcisco
|
||||||
LIBS+=-lcipwap
|
LIBS+=-lcipwap
|
||||||
|
LIBS+=-lcapwap80211
|
||||||
LIBS+=-lcw
|
LIBS+=-lcw
|
||||||
LIBS+=-lrt
|
LIBS+=-lrt
|
||||||
LIBS+=-lpthread
|
LIBS+=-lpthread
|
||||||
|
@ -145,7 +145,8 @@ static int init_mods()
|
|||||||
conf_mods[0]=modload_ac("cisco");
|
conf_mods[0]=modload_ac("cisco");
|
||||||
conf_mods[1]=modload_ac("cipwap");
|
conf_mods[1]=modload_ac("cipwap");
|
||||||
conf_mods[2]=modload_ac("capwap");
|
conf_mods[2]=modload_ac("capwap");
|
||||||
conf_mods[3]=NULL;
|
conf_mods[3]=modload_ac("capwap80211");
|
||||||
|
conf_mods[4]=NULL;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -16,21 +16,29 @@ static struct cw_actiondef actions;
|
|||||||
|
|
||||||
extern int cisco_register_actions_ac(struct cw_actiondef *def);
|
extern int cisco_register_actions_ac(struct cw_actiondef *def);
|
||||||
|
|
||||||
|
static int register_actions(struct cw_actiondef *actions)
|
||||||
static int init()
|
|
||||||
{
|
{
|
||||||
cw_dbg(DBG_INFO, "Initialiazing mod_cisco ...");
|
|
||||||
struct mod_ac *cmod = modload_ac("capwap");
|
struct mod_ac *cmod = modload_ac("capwap");
|
||||||
cmod->register_actions(&actions);
|
|
||||||
if (!cmod) {
|
if (!cmod) {
|
||||||
cw_log(LOG_ERR,
|
cw_log(LOG_ERR,
|
||||||
"Can't initzialize mod_cisco, failed to load base mod mod_capwap");
|
"Can't initzialize mod_cisco, failed to load base mod mod_capwap");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
cmod->register_actions(actions);
|
||||||
int rc = cisco_register_actions_ac(&actions);
|
int rc = cisco_register_actions_ac(actions);
|
||||||
cw_dbg(DBG_INFO, "Initialized mod cisco with %d actions", rc);
|
cw_dbg(DBG_INFO, "Initialized mod cisco with %d actions", rc);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
static int init()
|
||||||
|
{
|
||||||
|
cw_dbg(DBG_INFO, "Initialiazing mod_cisco ...");
|
||||||
|
// struct mod_ac *cmod = modload_ac("capwap");
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -70,7 +78,7 @@ static struct mod_ac capwap_ac = {
|
|||||||
.name = "cisco",
|
.name = "cisco",
|
||||||
.init = init,
|
.init = init,
|
||||||
.detect = detect,
|
.detect = detect,
|
||||||
.register_actions = cisco_register_actions_ac
|
.register_actions = register_actions
|
||||||
};
|
};
|
||||||
|
|
||||||
struct mod_ac *mod_cisco_ac()
|
struct mod_ac *mod_cisco_ac()
|
||||||
|
@ -4,8 +4,9 @@
|
|||||||
#include "cipwap/mod_cipwap.h"
|
#include "cipwap/mod_cipwap.h"
|
||||||
#include "capwap/mod_capwap.h"
|
#include "capwap/mod_capwap.h"
|
||||||
#include "cisco/mod_cisco.h"
|
#include "cisco/mod_cisco.h"
|
||||||
|
#include "capwap80211/mod_capwap80211.h"
|
||||||
|
|
||||||
#define MODS_AC { mod_capwap_ac,mod_cipwap_ac, mod_cisco_ac, NULL }
|
#define MODS_AC { mod_capwap_ac,mod_cipwap_ac, mod_cisco_ac, mod_capwap80211_ac, NULL }
|
||||||
|
|
||||||
|
|
||||||
struct mod_ac *(*mods_ac[])() = MODS_AC;
|
struct mod_ac *(*mods_ac[])() = MODS_AC;
|
||||||
|
Loading…
Reference in New Issue
Block a user