Refactoring, work on mod_load
FossilOrigin-Name: ae3ed889283aac53bbbe900b6859605b153f90b91430d231767343bcf05447a8
This commit is contained in:
@ -27,7 +27,7 @@ static int init()
|
||||
static int detect(struct conn *conn, const uint8_t * rawmsg, int rawlen, int elems_len,
|
||||
struct sockaddr *from, int mode)
|
||||
{
|
||||
if (mode != MOD_MODE_CAPWAP)
|
||||
if (mode != CW_MOD_MODE_CAPWAP)
|
||||
return 0;
|
||||
cw_dbg(DBG_MOD,"CAPWAP detected: yes");
|
||||
return 1;
|
||||
@ -35,7 +35,7 @@ static int detect(struct conn *conn, const uint8_t * rawmsg, int rawlen, int ele
|
||||
|
||||
static int register_actions(struct cw_actiondef *def, int mode)
|
||||
{
|
||||
if (mode != MOD_MODE_CAPWAP)
|
||||
if (mode != CW_MOD_MODE_CAPWAP)
|
||||
return 0;
|
||||
return capwap_register_actions_ac(def);
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ static int init()
|
||||
static int detect(struct conn *conn, const uint8_t * rawmsg, int rawlen, int elems_len,
|
||||
struct sockaddr *from, int mode)
|
||||
{
|
||||
if (mode != MOD_MODE_CAPWAP)
|
||||
if (mode != CW_MOD_MODE_CAPWAP)
|
||||
return 0;
|
||||
conn->detected = 1;
|
||||
conn->actions = &actions;
|
||||
@ -36,7 +36,7 @@ static int detect(struct conn *conn, const uint8_t * rawmsg, int rawlen, int ele
|
||||
|
||||
static int register_actions(struct cw_actiondef *def, int mode)
|
||||
{
|
||||
if (mode != MOD_MODE_CAPWAP)
|
||||
if (mode != CW_MOD_MODE_CAPWAP)
|
||||
return 0;
|
||||
return capwap_register_actions_wtp(def);
|
||||
}
|
||||
|
Reference in New Issue
Block a user