EDGESEC
0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
|
File containing the definition of hostapd config generation utilities. More...
#include <stdbool.h>
#include <sys/types.h>
#include "../radius/radius_config.h"
#include "../radius/radius_server.h"
#include "../utils/allocs.h"
#include "../utils/os.h"
#include "ap_config.h"
Go to the source code of this file.
Functions | |
int | generate_hostapd_conf (struct apconf *hconf, struct radius_conf *rconf) |
Generates and saves the hostapd configuration files. More... | |
int | generate_vlan_conf (char *vlan_file, char *interface) |
Generates and save the VLAN configuration file. More... | |
int | run_ap_process (struct apconf *hconf) |
Executes the hostapd process. More... | |
int | signal_ap_process (const struct apconf *hconf) |
Signal the AP process to reload the config. More... | |
bool | kill_ap_process (void) |
Terminate the AP service. More... | |
File containing the definition of hostapd config generation utilities.
Defines function that generate the hostapd daemon configuration file and manages (execute, kill and signal) the hostapd process.
int generate_hostapd_conf | ( | struct apconf * | hconf, |
struct radius_conf * | rconf | ||
) |
Generates and saves the hostapd configuration files.
hconf | The hostapd configuration structure |
rconf | The radius configuration structure |
int generate_vlan_conf | ( | char * | vlan_file, |
char * | interface | ||
) |
Generates and save the VLAN configuration file.
vlan_file | The VLAN configuration file path |
interface | The WiFi AP interface name |
bool kill_ap_process | ( | void | ) |
Terminate the AP service.
int run_ap_process | ( | struct apconf * | hconf | ) |
Executes the hostapd process.
hconf | The hostapd process config structure |
int signal_ap_process | ( | const struct apconf * | hconf | ) |
Signal the AP process to reload the config.
hconf | The hostapd process config structure |