Inital commit
FossilOrigin-Name: a7335c9d50fc8fad590a8815cdb3181bfcd8201e56f46f9d2c8e5403ee54d679
This commit is contained in:
parent
be07b0aa0a
commit
6d304c0b8e
9
src/mod/capwap80211/Makefile
Normal file
9
src/mod/capwap80211/Makefile
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
OBJS=\
|
||||
mod_capwap80211_ac.o
|
||||
|
||||
NAME=libcapwap80211.a
|
||||
|
||||
include ../Mod.mak
|
||||
|
||||
|
8
src/mod/capwap80211/mod_capwap80211.h
Normal file
8
src/mod/capwap80211/mod_capwap80211.h
Normal file
@ -0,0 +1,8 @@
|
||||
#ifndef __MOD_CAPWAP80211_H
|
||||
#define __MOD_CAPWAP80211_H
|
||||
|
||||
struct mod_ac *mod_capwap80211_ac();
|
||||
struct mod_wtp *mod_capwap2011_wtp();
|
||||
|
||||
|
||||
#endif
|
52
src/mod/capwap80211/mod_capwap80211_ac.c
Normal file
52
src/mod/capwap80211/mod_capwap80211_ac.c
Normal file
@ -0,0 +1,52 @@
|
||||
|
||||
#include "cw/mod.h"
|
||||
#include "cw/log.h"
|
||||
#include "cw/dbg.h"
|
||||
|
||||
#include "cw/action.h"
|
||||
|
||||
#include "mod_capwap80211.h"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//extern int capwap_register_actions_ac(struct cw_actiondef *def);
|
||||
|
||||
|
||||
static int init()
|
||||
{
|
||||
cw_dbg(DBG_INFO, "Initialiazing mod_capwap80211 ...");
|
||||
// int rc = capwap_register_actions_ac(&actions);
|
||||
//cw_dbg(DBG_INFO, "Initialized mod capwap80211 with %d actions", rc);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
static int detect(struct conn *conn, const uint8_t * rawmsg, int rawlen, int elems_len,
|
||||
struct sockaddr *from, int mode)
|
||||
{
|
||||
if (mode != MOD_DETECT_BINDINGS)
|
||||
return 0;
|
||||
|
||||
cw_log(LOG_INFO, "Detecting 80211");
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int register_actions(struct cw_actiondef *actions)
|
||||
{
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct mod_ac capwap80211_ac = {
|
||||
.name = "capwap80211",
|
||||
.init = init,
|
||||
.detect = detect,
|
||||
.register_actions = register_actions
|
||||
};
|
||||
|
||||
struct mod_ac *mod_capwap80211_ac()
|
||||
{
|
||||
return &capwap80211_ac;
|
||||
};
|
Loading…
Reference in New Issue
Block a user