EDGESEC  0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
Data Fields
app_config Struct Reference

The App configuration structures. Used for configuring the networking services. More...

#include <config.h>

Collaboration diagram for app_config:
[legend]

Data Fields

UT_array * bin_path_array
 
bool ap_detect
 
bool exec_ap
 
bool generate_ssid
 
bool exec_radius
 
bool exec_dhcp
 
bool exec_capture
 
bool exec_mdns_forward
 
bool exec_firewall
 
char nat_bridge [IF_NAMESIZE]
 
char nat_interface [IF_NAMESIZE]
 
char bridge_prefix [IF_NAMESIZE]
 
char interface_prefix [IF_NAMESIZE]
 
bool create_interfaces
 
bool ignore_if_error
 
bool allocate_vlans
 
int default_open_vlanid
 
UT_array * config_ifinfo_array
 
unsigned int supervisor_control_port
 
char supervisor_control_path [MAX_OS_PATH_LEN]
 
char connection_db_path [MAX_OS_PATH_LEN]
 
bool allow_all_connections
 
bool allow_all_nat
 
bool set_ip_forward
 
char pid_file_path [MAX_OS_PATH_LEN]
 
char config_ini_path [MAX_OS_PATH_LEN]
 
struct radius_conf rconfig
 
struct apconf hconfig
 
struct dns_conf dns_config
 
struct mdns_conf mdns_config
 
struct dhcp_conf dhcp_config
 
struct capture_conf capture_config
 
struct firewall_conf firewall_config
 

Detailed Description

The App configuration structures. Used for configuring the networking services.

This is normally initialised with load_app_config() and cleaned with free_app_config().

Field Documentation

◆ allocate_vlans

bool app_config::allocate_vlans

Flag if set allocates a random vlan for a device.

◆ allow_all_connections

bool app_config::allow_all_connections

Flag to allow all connections.

◆ allow_all_nat

bool app_config::allow_all_nat

Flag to allow all nat connections.

◆ ap_detect

bool app_config::ap_detect

Flag to detect an existing wifi interface to create the access point.

◆ bin_path_array

UT_array* app_config::bin_path_array

The array including the paths of systems binaries.

◆ bridge_prefix

char app_config::bridge_prefix[IF_NAMESIZE]

The bridge prefix.

◆ capture_config

struct capture_conf app_config::capture_config

Capture service configuration.

◆ config_ifinfo_array

UT_array* app_config::config_ifinfo_array

Interface list mapping bridge interface name and IP address range.

◆ config_ini_path

char app_config::config_ini_path[MAX_OS_PATH_LEN]

Path to the config.ini file.

◆ connection_db_path

char app_config::connection_db_path[MAX_OS_PATH_LEN]

Specifies the path to the connection sqlite3 dbs

◆ create_interfaces

bool app_config::create_interfaces

Flag to create the WiFi subnet interfaces.

◆ default_open_vlanid

int app_config::default_open_vlanid

Sets the default vlan index for open connections or if MAC is not in the list of connections.

◆ dhcp_config

struct dhcp_conf app_config::dhcp_config

DHCP service configuration.

◆ dns_config

struct dns_conf app_config::dns_config

DNS service configuration.

◆ exec_ap

bool app_config::exec_ap

Flag to execute the ap service.

◆ exec_capture

bool app_config::exec_capture

Flag to execute the capture service.

◆ exec_dhcp

bool app_config::exec_dhcp

Flag to execute the dhcp service.

◆ exec_firewall

bool app_config::exec_firewall

Flag to execute the firewall command.

◆ exec_mdns_forward

bool app_config::exec_mdns_forward

Flag to execute the mdns forwarding service.

◆ exec_radius

bool app_config::exec_radius

Flag to execute the radius service.

◆ firewall_config

struct firewall_conf app_config::firewall_config

Firewall service configuration.

◆ generate_ssid

bool app_config::generate_ssid

Flag to generate the SSID for AP.

◆ hconfig

struct apconf app_config::hconfig

AP service configuration.

◆ ignore_if_error

bool app_config::ignore_if_error

Flag if set ignores the errors if subnet already exists.

◆ interface_prefix

char app_config::interface_prefix[IF_NAMESIZE]

The interface prefix.

◆ mdns_config

struct mdns_conf app_config::mdns_config

mDNS service configuration.

◆ nat_bridge

char app_config::nat_bridge[IF_NAMESIZE]

The NAT bridge string.

◆ nat_interface

char app_config::nat_interface[IF_NAMESIZE]

The NAT interface string.

◆ pid_file_path

char app_config::pid_file_path[MAX_OS_PATH_LEN]

Path to the pid file.

◆ rconfig

struct radius_conf app_config::rconfig

Radius service configuration.

◆ set_ip_forward

bool app_config::set_ip_forward

Flag to set the ip forward os system param.

◆ supervisor_control_path

char app_config::supervisor_control_path[MAX_OS_PATH_LEN]

Path to the control server.

◆ supervisor_control_port

unsigned int app_config::supervisor_control_port

The port number for the supervisor control server


The documentation for this struct was generated from the following file: