EDGESEC  0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
capture_config.h
Go to the documentation of this file.
1 
15 #ifndef CAPTURE_CONFIG_H
16 #define CAPTURE_CONFIG_H
17 
18 #include <stdbool.h>
19 
20 #include "../utils/os.h"
21 
22 #define MAX_FILTER_SIZE \
23  4094 /* Maximum length of the filter string for libpcap */
24 
25 #define MAX_MIDDLEWARE_PARAMS_SIZE \
26  4094 /* Maximum length of the middleware params string */
27 
32 struct capture_conf {
33  bool promiscuous;
37  bool immediate;
41  uint32_t
52 };
53 
54 #endif
#define MAX_MIDDLEWARE_PARAMS_SIZE
Definition: capture_config.h:25
#define MAX_FILTER_SIZE
Definition: capture_config.h:22
#define MAX_OS_PATH_LEN
Definition: os.h:29
The capture configuration structure.
Definition: capture_config.h:32
char middleware_params[MAX_MIDDLEWARE_PARAMS_SIZE]
Definition: capture_config.h:49
char capture_db_path[MAX_OS_PATH_LEN]
Definition: capture_config.h:45
uint32_t buffer_timeout
Definition: capture_config.h:42
char filter[MAX_FILTER_SIZE]
Definition: capture_config.h:47
bool promiscuous
Definition: capture_config.h:33
bool immediate
Definition: capture_config.h:37