10 #ifndef HAKA_PACKET_MODULE_H 11 #define HAKA_PACKET_MODULE_H 26 struct packet_module_state;
55 struct packet_module_state *(*init_state)(
int thread_id);
88 const char *(*get_dissector)(
struct packet *pkt);
103 struct packet *(*new_packet)(
struct packet_module_state *state,
size_t size);
bool(* is_realtime)()
Definition: packet_module.h:49
Definition: packet_module.h:23
size_t(* get_mtu)(struct packet *pkt)
Definition: packet_module.h:114
filter_result
Definition: packet_module.h:21
unsigned HAKA_64BIT_TYPE uint64
Definition: types.h:30
int(* receive)(struct packet_module_state *state, struct packet **pkt)
Definition: packet_module.h:68
Definition: packet_module.h:33
uint64(* get_id)(struct packet *pkt)
Definition: packet_module.h:83
bool(* send_packet)(struct packet *pkt)
Definition: packet_module.h:109
void(* verdict)(struct packet *pkt, filter_result result)
Definition: packet_module.h:78
Definition: packet_module.h:22
unsigned char bool
Definition: types.h:17
bool(* multi_threaded)()
Definition: packet_module.h:39
void(* cleanup_state)(struct packet_module_state *state)
Definition: packet_module.h:60
packet_status
Definition: packet.h:39
void(* release_packet)(struct packet *pkt)
Definition: packet_module.h:93
enum packet_status(* packet_getstate)(struct packet *pkt)
Definition: packet_module.h:98
bool(* pass_through)()
Definition: packet_module.h:44