Governa-dhcp

# Conflicts:
#	examples/access_point/access_point.c
#	extras/dhcpserver/dhcpserver.c
#	extras/dhcpserver/include/dhcpserver.h
This commit is contained in:
UncleRus 2017-10-10 21:56:24 +05:00
commit 548e2b5596
4 changed files with 65 additions and 73 deletions

View file

@ -25,8 +25,10 @@ extern "C" {
first_client_addr is the IP address of the first lease to be handed
to a client. Subsequent lease addresses are calculated by
incrementing the final octet of the IPv4 address, up to max_leases.
The server will wait for requests on server_if interface.
*/
void dhcpserver_start(const ip4_addr_t *first_client_addr, uint8_t max_leases);
void dhcpserver_start(struct netif *server_if, const ip_addr_t *first_client_addr, uint8_t max_leases);
void dhcpserver_get_lease(const ip4_addr_t *first_client_addr, uint8_t max_leases);