Working on mods...

FossilOrigin-Name: 38c2ad1dd0ad8734bd1c30721f63fecfc6f011c32163b750757ef50a961c131d
This commit is contained in:
7u83@mail.ru
2016-02-22 17:33:47 +00:00
parent ffad4eb8a9
commit b2710dc698
13 changed files with 62 additions and 46 deletions

View File

@ -3,12 +3,20 @@
#include <stddef.h>
#include "sock.h"
#include "conn.h"
struct mod_ac
{
/** Name of the mod */
const char *name;
/** Initializion method */
int (*init)();
int (*detect_by_raw)(const char *msg, int len);
int (*detect_by_discovery)(const char*);
/** Detect capwap
This function ifter receiving and disassembling a complete
CAPWAP message. Either on Discovery Request or Join Request
**/
int (*detect)(struct conn *conn,const char *rawmsg, int rawlen,struct sockaddr *from);
};
@ -18,5 +26,6 @@ struct mod_ac
#define MODS_AC { mod_cipwap_ac,NULL }
extern struct mod_ac * cw_get_mod_ac(const char *name);
#endif