EDGESEC
0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
|
File containing the implementation of the app configuration utilities. More...
#include <stdarg.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <minIni.h>
#include <unistd.h>
#include "./dhcp/dhcp_config_utils.h"
#include "config.h"
#include "utils/allocs.h"
#include "utils/os.h"
#include "supervisor/cmd_processor.h"
Functions | |
bool | get_config_ifinfo (char *info, config_ifinfo_t *el) |
bool | load_interface_list (const char *filename, struct app_config *config) |
Loads the list of interfaces. More... | |
bool | load_dhcp_list (const char *filename, struct app_config *config) |
bool | load_radius_conf (const char *filename, struct app_config *config) |
bool | load_ap_conf (const char *filename, struct app_config *config) |
Loads the AP config. More... | |
bool | load_dns_conf (const char *filename, struct app_config *config) |
bool | load_mdns_conf (const char *filename, struct app_config *config) |
Loads the mDNS config. More... | |
bool | load_dhcp_conf (const char *filename, struct app_config *config) |
bool | load_capture_config (const char *filename, struct capture_conf *config) |
Loads the capture config. More... | |
bool | load_system_config (const char *filename, struct app_config *config) |
Loads the system config. More... | |
bool | load_supervisor_config (const char *filename, struct app_config *config) |
Loads the supervisor config. More... | |
bool | load_nat_config (const char *filename, struct app_config *config) |
bool | load_firewall_config (const char *filename, struct firewall_conf *config) |
int | load_app_config (const char *filename, struct app_config *config) |
Load the app configuration. More... | |
void | free_app_config (struct app_config *config) |
Frees the app configuration. More... | |
File containing the implementation of the app configuration utilities.
void free_app_config | ( | struct app_config * | config | ) |
Frees the app configuration.
config | The app configuration structure |
bool get_config_ifinfo | ( | char * | info, |
config_ifinfo_t * | el | ||
) |
bool load_ap_conf | ( | const char * | filename, |
struct app_config * | config | ||
) |
Loads the AP config.
filename | The app configuration file |
config | The app configuration structure |
int load_app_config | ( | const char * | filename, |
struct app_config * | config | ||
) |
Load the app configuration.
filename | The app configuration file | |
[in,out] | config | The configuration structure to store config in. Must be cleaned up with free_app_config(). |
bool load_capture_config | ( | const char * | filename, |
struct capture_conf * | config | ||
) |
Loads the capture config.
filename | The app configuration file |
config | The capture configuration structure |
bool load_dhcp_conf | ( | const char * | filename, |
struct app_config * | config | ||
) |
bool load_dhcp_list | ( | const char * | filename, |
struct app_config * | config | ||
) |
bool load_dns_conf | ( | const char * | filename, |
struct app_config * | config | ||
) |
bool load_firewall_config | ( | const char * | filename, |
struct firewall_conf * | config | ||
) |
bool load_interface_list | ( | const char * | filename, |
struct app_config * | config | ||
) |
Loads the list of interfaces.
filename | The app configuration file |
config | The app configuration structure |
bool load_mdns_conf | ( | const char * | filename, |
struct app_config * | config | ||
) |
Loads the mDNS config.
filename | The app configuration file |
config | The app configuration structure |
bool load_nat_config | ( | const char * | filename, |
struct app_config * | config | ||
) |
bool load_radius_conf | ( | const char * | filename, |
struct app_config * | config | ||
) |
bool load_supervisor_config | ( | const char * | filename, |
struct app_config * | config | ||
) |
Loads the supervisor config.
filename | The app configuration file |
config | The app configuration structure |
bool load_system_config | ( | const char * | filename, |
struct app_config * | config | ||
) |
Loads the system config.
filename | The app configuration file |
config | The app configuration structure |