EDGESEC
0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
|
File containing the implementation of dhcp service configuration utilities. More...
#include "dhcp_config.h"
#include "dnsmasq.h"
#include "../utils/allocs.h"
#include "../utils/log.h"
#include "../utils/os.h"
#include "dhcp_service.h"
Functions | |
int | run_dhcp (struct dhcp_conf *dconf, UT_array *dns_server_array, char *supervisor_control_path, bool exec_dhcp) |
Run the DHCP server. More... | |
bool | close_dhcp (void) |
Closes (terminates) dhcp process. More... | |
int | clear_dhcp_lease (char *mac_addr, struct dhcp_conf *dconf) |
Clear the DHCP lease for a MAC addrress. More... | |
File containing the implementation of dhcp service configuration utilities.
int clear_dhcp_lease | ( | char * | mac_addr, |
struct dhcp_conf * | dconf | ||
) |
Clear the DHCP lease for a MAC addrress.
mac_addr | The MAC address string |
dconf | The dhcp configuration structures |
bool close_dhcp | ( | void | ) |
Closes (terminates) dhcp process.
int run_dhcp | ( | struct dhcp_conf * | dconf, |
UT_array * | dns_server_array, | ||
char * | supervisor_control_path, | ||
bool | exec_dhcp | ||
) |
Run the DHCP server.
dconf | The dhcp configuration structures. |
dns_server_array | The array including the DNS servers IP addresses. |
supervisor_control_path | The UNIX domain control path. |
exec_dhcp | Flag to execute/signal the DHCP process. |