EDGESEC  0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
dhcp_service.h
Go to the documentation of this file.
1 
11 #ifndef DHCP_SERVICE_H
12 #define DHCP_SERVICE_H
13 
14 #include "dhcp_config.h"
15 
16 #include "../utils/allocs.h"
17 #include "../utils/os.h"
18 
28 int run_dhcp(struct dhcp_conf *dconf, UT_array *dns_server_array,
29  char *supervisor_control_path, bool exec_dhcp);
30 
36 bool close_dhcp(void);
37 
45 int clear_dhcp_lease(char *mac_addr, struct dhcp_conf *dconf);
46 #endif
File containing the definition of dhcp configuration structures.
bool close_dhcp(void)
Closes (terminates) dhcp process.
Definition: dhcp_service.c:41
int run_dhcp(struct dhcp_conf *dconf, UT_array *dns_server_array, char *supervisor_control_path, bool exec_dhcp)
Run the DHCP server.
Definition: dhcp_service.c:19
int clear_dhcp_lease(char *mac_addr, struct dhcp_conf *dconf)
Clear the DHCP lease for a MAC addrress.
Definition: dhcp_service.c:43
The dhcp configuration structures.
Definition: dhcp_config.h:40