Working on mods...
FossilOrigin-Name: 38c2ad1dd0ad8734bd1c30721f63fecfc6f011c32163b750757ef50a961c131d
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user