Able to fetch leases from dhcpserver.
This commit is contained in:
parent
b6509629ad
commit
e9135866f2
2 changed files with 35 additions and 1 deletions
7
extras/dhcpserver/include/dhcpserver.h
Normal file → Executable file
7
extras/dhcpserver/include/dhcpserver.h
Normal file → Executable file
|
|
@ -18,6 +18,11 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
uint8_t hwaddr[NETIF_MAX_HWADDR_LEN];
|
||||
ip4_addr_t ipaddr;
|
||||
} dhcpserver_lease_t;
|
||||
|
||||
/* Start DHCP server.
|
||||
|
||||
Static IP of server should already be set and network interface enabled.
|
||||
|
|
@ -28,7 +33,7 @@ extern "C" {
|
|||
*/
|
||||
void dhcpserver_start(const ip4_addr_t *first_client_addr, uint8_t max_leases);
|
||||
|
||||
void dhcpserver_get_lease(const ip4_addr_t *first_client_addr, uint8_t max_leases);
|
||||
int dhcpserver_get_leases(dhcpserver_lease_t *leases, uint32_t capacity);
|
||||
|
||||
/* Stop DHCP server.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue