Better debug options for mods.

FossilOrigin-Name: 4fd4dd16e470f78d30afa54005a70452c95b6499c789c3bcb2a4fc73397e32f3
This commit is contained in:
7u83@mail.ru
2016-03-09 17:39:57 +00:00
parent 883c253f31
commit 5d5f22ce4e
10 changed files with 25 additions and 7 deletions

View File

@ -1,6 +1,7 @@
#include "cw/mod.h"
#include "cw/log.h"
#include "cw/dbg.h"
#include "mod_cipwap.h"
@ -14,8 +15,10 @@ int cipwap_init()
static int detect(struct conn *conn,const uint8_t *rawmsg, int rawlen,int elems_len, struct sockaddr *from, int mode)
{
if (mode != MOD_DETECT_CAPWAP)
return 0;
cw_log(LOG_INFO,"Detecting ...");
cw_dbg(DBG_MOD,"CIPWAP detected: no");
return 0;
}