2016-02-22 09:16:37 +01:00
|
|
|
|
2016-03-03 20:46:20 +01:00
|
|
|
#include "cw/mod.h"
|
|
|
|
#include "cw/log.h"
|
2016-03-09 18:39:57 +01:00
|
|
|
#include "cw/dbg.h"
|
2016-02-23 08:58:05 +01:00
|
|
|
|
2016-02-22 09:16:37 +01:00
|
|
|
#include "mod_cipwap.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int cipwap_init()
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-03-08 01:20:22 +01:00
|
|
|
static int detect(struct conn *conn,const uint8_t *rawmsg, int rawlen,int elems_len, struct sockaddr *from, int mode)
|
2016-02-23 08:58:05 +01:00
|
|
|
{
|
2016-03-10 08:07:30 +01:00
|
|
|
if (mode != MOD_MODE_CAPWAP)
|
2016-03-09 18:39:57 +01:00
|
|
|
return 0;
|
2016-03-08 01:20:22 +01:00
|
|
|
|
2016-03-09 18:39:57 +01:00
|
|
|
cw_dbg(DBG_MOD,"CIPWAP detected: no");
|
2016-02-23 08:58:05 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-02-22 09:16:37 +01:00
|
|
|
static struct mod_ac cipwap_ac = {
|
2016-02-23 08:58:05 +01:00
|
|
|
.name ="cipwap",
|
2016-02-22 18:33:47 +01:00
|
|
|
.init = cipwap_init,
|
2016-02-23 08:58:05 +01:00
|
|
|
.detect = detect
|
|
|
|
|
2016-02-22 09:16:37 +01:00
|
|
|
};
|
|
|
|
|
2016-02-23 08:58:05 +01:00
|
|
|
|
|
|
|
|
2016-02-22 09:16:37 +01:00
|
|
|
struct mod_ac * mod_cipwap_ac(){
|
|
|
|
return &cipwap_ac;
|
|
|
|
};
|
|
|
|
|