17 #include "../utils/allocs.h"
18 #include "../utils/os.h"
37 char *supervisor_control_path);
50 char *
run_dhcp_process(
const char *dhcp_bin_path,
const char *dhcp_conf_path);
File containing the definition of dhcp configuration structures.
int define_dhcp_interface_name(const struct dhcp_conf *dconf, uint16_t vlanid, char *ifname)
Creates the DHCP interface name for the given vlan id.
Definition: dnsmasq.c:69
int clear_dhcp_lease_entry(char *mac_addr, char *dhcp_leasefile_path)
Clear the DHCP lease entry for a MAC addrress.
Definition: dnsmasq.c:434
int generate_dnsmasq_conf(struct dhcp_conf *dconf, UT_array *dns_server_array)
Generates the dnsmasq configuration file.
Definition: dnsmasq.c:205
char * run_dhcp_process(const char *dhcp_bin_path, const char *dhcp_conf_path)
Execute the DHCP server.
Definition: dnsmasq.c:323
int signal_dhcp_process(const char *dhcp_bin_path)
Signal the DHCP process to reload the config.
Definition: dnsmasq.c:417
bool kill_dhcp_process(void)
Terminate the DHCP server.
Definition: dnsmasq.c:401
int generate_dnsmasq_script(char *dhcp_script_path, char *supervisor_control_path)
Generates the dnsmasq executable script for DHCP requests.
Definition: dnsmasq.c:243
The dhcp configuration structures.
Definition: dhcp_config.h:40