mod detect ...
FossilOrigin-Name: 894ad3ff8fc732e6bd388710e8d886fbccb299f1cb979c66e1cbf447befa5707
This commit is contained in:
parent
524b8ed1fd
commit
ce4913b1fd
@ -120,14 +120,14 @@ int main(int argc, char *argv[])
|
|||||||
developers is turned on ;) */
|
developers is turned on ;) */
|
||||||
DBGX("Attention! %s", "DBG X is ON!");
|
DBGX("Attention! %s", "DBG X is ON!");
|
||||||
|
|
||||||
cw_mod_set_mod_path("../../lib/actube");
|
// cw_mod_set_mod_path("../../lib/actube");
|
||||||
cw_mod_load("capwap");
|
// cw_mod_load("capwap");
|
||||||
|
|
||||||
exit(0);
|
|
||||||
|
|
||||||
|
|
||||||
test_sets();
|
|
||||||
exit(0);
|
|
||||||
|
//test_sets();
|
||||||
|
//exit(0);
|
||||||
|
|
||||||
/* Initialize the database */
|
/* Initialize the database */
|
||||||
if (!db_init())
|
if (!db_init())
|
||||||
|
@ -171,6 +171,8 @@ static int check_len(struct conn *conn, struct cw_action_in *a, uint8_t * data,
|
|||||||
static struct cw_Mod *detect_mod(struct conn *conn, uint8_t * rawmsg, int len,
|
static struct cw_Mod *detect_mod(struct conn *conn, uint8_t * rawmsg, int len,
|
||||||
int elems_len, struct sockaddr *from, int mode)
|
int elems_len, struct sockaddr *from, int mode)
|
||||||
{
|
{
|
||||||
|
return MOD_NULL;
|
||||||
|
|
||||||
if (!conn->mods)
|
if (!conn->mods)
|
||||||
return MOD_NULL;
|
return MOD_NULL;
|
||||||
|
|
||||||
@ -299,7 +301,7 @@ static int process_elements(struct conn *conn, uint8_t * rawmsg, int len,
|
|||||||
//struct mod_ac *mod;
|
//struct mod_ac *mod;
|
||||||
struct cw_actiondef *ad = load_mods(conn, rawmsg, len, elems_len, from);
|
struct cw_actiondef *ad = load_mods(conn, rawmsg, len, elems_len, from);
|
||||||
if (!ad) {
|
if (!ad) {
|
||||||
cw_log(LOG_ERR, "Error");
|
//cw_log(LOG_ERR, "Error");
|
||||||
errno = EAGAIN;
|
errno = EAGAIN;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user