EDGESEC
0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
|
File containing the implementation of the tap middleware utilities. More...
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <eloop.h>
#include <libgen.h>
#include <sqlite3.h>
#include <string.h>
#include "tap_middleware.h"
#include "../../../utils/allocs.h"
#include "../../../utils/log.h"
#include "../../../utils/os.h"
#include "../../../utils/squeue.h"
#include "../../pcap_service.h"
Functions | |
void | free_tap_middleware (struct middleware_context *context) |
struct middleware_context * | init_tap_middleware (sqlite3 *db, char *db_path, struct eloop_data *eloop, struct pcap_context *pc, char *params) |
int | process_tap_middleware (struct middleware_context *context, const char *ltype, struct pcap_pkthdr *header, uint8_t *packet, char *ifname) |
Variables | |
struct capture_middleware | tap_middleware |
TAP Capture Middleware. The TAP capture middleware stores mirrors the trafic from the capture interface to an output interface. More... | |
File containing the implementation of the tap middleware utilities.
void free_tap_middleware | ( | struct middleware_context * | context | ) |
struct middleware_context* init_tap_middleware | ( | sqlite3 * | db, |
char * | db_path, | ||
struct eloop_data * | eloop, | ||
struct pcap_context * | pc, | ||
char * | params | ||
) |
int process_tap_middleware | ( | struct middleware_context * | context, |
const char * | ltype, | ||
struct pcap_pkthdr * | header, | ||
uint8_t * | packet, | ||
char * | ifname | ||
) |
struct capture_middleware tap_middleware |
TAP Capture Middleware. The TAP capture middleware stores mirrors the trafic from the capture interface to an output interface.