EDGESEC
0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
src
firewall
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
{
29
char
firewall_bin_path
[
MAX_OS_PATH_LEN
];
31
};
32
33
struct
fwctx
{
34
hmap_if_conn
*
if_mapper
;
35
hmap_vlan_conn
*
vlan_mapper
;
36
hmap_str_keychar
*
hmap_bin_paths
;
37
UT_array *
config_ifinfo_array
;
39
char
*
nat_bridge
;
40
char
*
nat_interface
;
41
bool
exec_firewall
;
42
char
*
firewall_bin_path
;
43
#ifdef WITH_UCI_SERVICE
44
struct
uctx
*
ctx
;
45
#else
46
struct
iptables_context
*
ctx
;
47
#endif
48
};
49
#endif
MAX_OS_PATH_LEN
#define MAX_OS_PATH_LEN
Definition:
os.h:29
firewall_conf
Definition:
firewall_config.h:28
firewall_conf::firewall_bin_path
char firewall_bin_path[MAX_OS_PATH_LEN]
Definition:
firewall_config.h:29
fwctx
Definition:
firewall_config.h:33
fwctx::vlan_mapper
hmap_vlan_conn * vlan_mapper
Definition:
firewall_config.h:35
fwctx::ctx
struct iptables_context * ctx
Definition:
firewall_config.h:46
fwctx::nat_interface
char * nat_interface
Definition:
firewall_config.h:40
fwctx::if_mapper
hmap_if_conn * if_mapper
Definition:
firewall_config.h:34
fwctx::exec_firewall
bool exec_firewall
Definition:
firewall_config.h:41
fwctx::hmap_bin_paths
hmap_str_keychar * hmap_bin_paths
Definition:
firewall_config.h:36
fwctx::nat_bridge
char * nat_bridge
Definition:
firewall_config.h:39
fwctx::config_ifinfo_array
UT_array * config_ifinfo_array
Definition:
firewall_config.h:37
fwctx::firewall_bin_path
char * firewall_bin_path
Definition:
firewall_config.h:42
hashmap_if_conn
Subnet to interface connection mapper.
Definition:
iface_mapper.h:76
hashmap_str_keychar
keyd array hasmap structure definition
Definition:
hashmap.h:23
hashmap_vlan_conn
VLAN to interface connection mapper.
Definition:
iface_mapper.h:96
iptables_context
iptables context structure definition
Definition:
iptables.h:25
uctx
Definition:
uci_wrt.h:20
Generated by
1.9.1