#ifndef __MOD_H #define __MOD_H #include #include "sock.h" #include "conn.h" struct mod_ac { /** Name of the mod */ const char *name; /** Initializion method */ int (*init)(); /** 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); }; #include "mod/cipwap/mod_cipwap.h" #define MODS_AC { mod_cipwap_ac,NULL } extern struct mod_ac * cw_get_mod_ac(const char *name); #endif