EDGESEC
0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
|
File containing the implementation of the header middleware utilities. More...
#include "header_middleware.h"
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <pcap.h>
#include <sqlite3.h>
#include <string.h>
#include <eloop.h>
#include "../../../utils/allocs.h"
#include "../../../utils/log.h"
#include "../../../utils/os.h"
#include "packet_decoder.h"
#include "packet_queue.h"
#include "sqlite_header.h"
#include "../../pcap_service.h"
Macros | |
#define | HEADER_PROCESS_INTERVAL 10 * 1000 |
Functions | |
void | add_packet_queue (UT_array *tp_array, struct packet_queue *queue) |
void | eloop_tout_header_handler (void *eloop_ctx, void *user_ctx) |
void | free_header_middleware (struct middleware_context *context) |
struct middleware_context * | init_header_middleware (sqlite3 *db, char *db_path, struct eloop_data *eloop, struct pcap_context *pc, char *params) |
int | process_header_middleware (struct middleware_context *context, const char *ltype, struct pcap_pkthdr *header, uint8_t *packet, char *ifname) |
Variables | |
struct capture_middleware | header_middleware |
Packet Header Capture Middleware. The header middleware stores packet headers and other packet metadata into the capture SQLite database. More... | |
File containing the implementation of the header middleware utilities.
#define HEADER_PROCESS_INTERVAL 10 * 1000 |
void add_packet_queue | ( | UT_array * | tp_array, |
struct packet_queue * | queue | ||
) |
void eloop_tout_header_handler | ( | void * | eloop_ctx, |
void * | user_ctx | ||
) |
void free_header_middleware | ( | struct middleware_context * | context | ) |
struct middleware_context* init_header_middleware | ( | sqlite3 * | db, |
char * | db_path, | ||
struct eloop_data * | eloop, | ||
struct pcap_context * | pc, | ||
char * | params | ||
) |
int process_header_middleware | ( | struct middleware_context * | context, |
const char * | ltype, | ||
struct pcap_pkthdr * | header, | ||
uint8_t * | packet, | ||
char * | ifname | ||
) |
struct capture_middleware header_middleware |
Packet Header Capture Middleware. The header middleware stores packet headers and other packet metadata into the capture SQLite database.