EDGESEC  0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
firewall_config.h
Go to the documentation of this file.
1 
11 #ifndef FIREWALL_CONFIG_H
12 #define FIREWALL_CONFIG_H
13 
14 #include <stdbool.h>
15 #include <inttypes.h>
16 
17 #include <utarray.h>
18 #include "../utils/hashmap.h"
19 #include "../utils/iface_mapper.h"
20 #include "../utils/os.h"
21 
22 #ifdef WITH_UCI_SERVICE
23 #include "../utils/uci_wrt.h"
24 #else
25 #include "../utils/iptables.h"
26 #endif
27 
28 struct firewall_conf {
31 };
32 
33 struct fwctx {
37  UT_array *config_ifinfo_array;
39  char *nat_bridge;
43 #ifdef WITH_UCI_SERVICE
44  struct uctx *ctx;
45 #else
47 #endif
48 };
49 #endif
#define MAX_OS_PATH_LEN
Definition: os.h:29
Definition: firewall_config.h:28
char firewall_bin_path[MAX_OS_PATH_LEN]
Definition: firewall_config.h:29
Definition: firewall_config.h:33
hmap_vlan_conn * vlan_mapper
Definition: firewall_config.h:35
struct iptables_context * ctx
Definition: firewall_config.h:46
char * nat_interface
Definition: firewall_config.h:40
hmap_if_conn * if_mapper
Definition: firewall_config.h:34
bool exec_firewall
Definition: firewall_config.h:41
hmap_str_keychar * hmap_bin_paths
Definition: firewall_config.h:36
char * nat_bridge
Definition: firewall_config.h:39
UT_array * config_ifinfo_array
Definition: firewall_config.h:37
char * firewall_bin_path
Definition: firewall_config.h:42
Subnet to interface connection mapper.
Definition: iface_mapper.h:76
keyd array hasmap structure definition
Definition: hashmap.h:23
VLAN to interface connection mapper.
Definition: iface_mapper.h:96
iptables context structure definition
Definition: iptables.h:25
Definition: uci_wrt.h:20