int(*const process)(struct middleware_context *context, const char *ltype, struct pcap_pkthdr *header, uint8_t *packet, char *ifname)
Runs the middleware.
Definition: middleware.h:68
struct middleware_context *(*const init)(sqlite3 *db, char *db_path, struct eloop_data *eloop, struct pcap_context *pc, char *params)
Initialises the middleware.
Definition: middleware.h:52
Definition: middleware.h:22
char * params
Definition: middleware.h:27
struct eloop_data * eloop
Definition: middleware.h:24
sqlite3 * db
Definition: middleware.h:23
void * mdata
Definition: middleware.h:26
struct pcap_context * pc
Definition: middleware.h:25
Pcap context structure definition.
Definition: pcap_service.h:29