Add safety nets for lousy networks

This commit is contained in:
Sergio R. Caprile committed 2025-12-03 11:31:47 -03:00
1 parent 0f1a3cf84b
commit 66dcca9392
5 files changed
+182 -46

No files matched your search

+2
View File
@@ -80,9 +80,11 @@ struct mg_tcpip_if {
#define MG_TCPIP_STATE_REQ 2 // Interface is up, DHCP REQUESTING state
#define MG_TCPIP_STATE_IP 3 // Interface is up and has an IP assigned
#define MG_TCPIP_STATE_READY 4 // Interface has fully come up, ready to work
bool gw_ready; // We've got a hw address for the router
#if MG_ENABLE_IPV6
uint8_t gw6mac[6]; // IPv6 Router's MAC
uint8_t state6; // Current IPv6 state
bool gw6_ready; // We've got a hw address for the IPv6 router
#endif
};
void mg_tcpip_init(struct mg_mgr *, struct mg_tcpip_if *);