summaryrefslogtreecommitdiff
path: root/lib/networking/dhserver.h
diff options
context:
space:
mode:
authorPeter Lawrence <[email protected]>2020-10-14 20:26:40 -0500
committerPeter Lawrence <[email protected]>2020-10-14 20:26:40 -0500
commit56277ce21639a1e3ed608e73d67367d2b21c1764 (patch)
tree0ab8065c30b2a9477de8886bb7ef0328cc80d7e1 /lib/networking/dhserver.h
parent41083cb67a1f7ef5d2647125ec90b4ed7db1d623 (diff)
net_lwip_webserver: efficiency tweaks
Diffstat (limited to 'lib/networking/dhserver.h')
-rw-r--r--lib/networking/dhserver.h7
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;