EDGESEC  0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
dhcp_config.h
Go to the documentation of this file.
1 
10 #ifndef DHCP_CONFIG_H
11 #define DHCP_CONFIG_H
12 
13 #include <net/if.h>
14 #include <utarray.h>
15 
16 #include "../utils/allocs.h"
17 #include "../utils/net.h"
18 #include "../utils/os.h"
19 
20 #define DHCP_LEASE_TIME_SIZE 10
21 
26 typedef struct config_dhcpinfo_t {
27  int vlanid;
35 
40 struct dhcp_conf {
47  char bridge_prefix[IF_NAMESIZE];
48  char interface_prefix[IF_NAMESIZE];
49  char wifi_interface[IF_NAMESIZE];
52 };
53 #endif
#define DHCP_LEASE_TIME_SIZE
Definition: dhcp_config.h:20
struct config_dhcpinfo_t config_dhcpinfo_t
The dhcp mapping structure.
#define OS_INET_ADDRSTRLEN
Definition: net.h:25
#define MAX_OS_PATH_LEN
Definition: os.h:29
The dhcp mapping structure.
Definition: dhcp_config.h:26
char ip_addr_upp[OS_INET_ADDRSTRLEN]
Definition: dhcp_config.h:30
int vlanid
Definition: dhcp_config.h:27
char ip_addr_low[OS_INET_ADDRSTRLEN]
Definition: dhcp_config.h:28
char subnet_mask[OS_INET_ADDRSTRLEN]
Definition: dhcp_config.h:32
char lease_time[DHCP_LEASE_TIME_SIZE]
Definition: dhcp_config.h:33
The dhcp configuration structures.
Definition: dhcp_config.h:40
char interface_prefix[IF_NAMESIZE]
Definition: dhcp_config.h:48
char bridge_prefix[IF_NAMESIZE]
Definition: dhcp_config.h:47
char wifi_interface[IF_NAMESIZE]
Definition: dhcp_config.h:49
char dhcp_leasefile_path[MAX_OS_PATH_LEN]
Definition: dhcp_config.h:45
char dhcp_bin_path[MAX_OS_PATH_LEN]
Definition: dhcp_config.h:41
UT_array * config_dhcpinfo_array
Definition: dhcp_config.h:50
char dhcp_conf_path[MAX_OS_PATH_LEN]
Definition: dhcp_config.h:42
char dhcp_script_path[MAX_OS_PATH_LEN]
Definition: dhcp_config.h:43