diff options
| author | Peter Lawrence <[email protected]> | 2020-10-14 20:26:40 -0500 |
|---|---|---|
| committer | Peter Lawrence <[email protected]> | 2020-10-14 20:26:40 -0500 |
| commit | 56277ce21639a1e3ed608e73d67367d2b21c1764 (patch) | |
| tree | 0ab8065c30b2a9477de8886bb7ef0328cc80d7e1 /lib/networking/dhserver.h | |
| parent | 41083cb67a1f7ef5d2647125ec90b4ed7db1d623 (diff) | |
net_lwip_webserver: efficiency tweaks
Diffstat (limited to 'lib/networking/dhserver.h')
| -rw-r--r-- | lib/networking/dhserver.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/networking/dhserver.h b/lib/networking/dhserver.h index 901f6e351..0d22461c7 100644 --- a/lib/networking/dhserver.h +++ b/lib/networking/dhserver.h @@ -42,16 +42,15 @@ typedef struct dhcp_entry { uint8_t mac[6]; - uint8_t addr[4]; - uint8_t subnet[4]; + ip_addr_t addr; uint32_t lease; } dhcp_entry_t; typedef struct dhcp_config { - uint8_t addr[4]; + ip_addr_t router; uint16_t port; - uint8_t dns[4]; + ip_addr_t dns; const char *domain; int num_entry; dhcp_entry_t *entries; |
