mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-18 19:31:02 +00:00
Fix: DHCP client stuck in REQUESTING state forever if the REQUEST or ACK is lost
This commit is contained in:
1 parent
b766c65615
commit
69e8c0a92f
3 files changed
+12
No files matched your search
@@ -80,6 +80,10 @@ static void test_statechange(void) {
|
||||
onstatechange(&iface);
|
||||
ASSERT(executed == true);
|
||||
executed = false;
|
||||
iface.enable_dhcp_client = true; // DHCP REQUEST unanswered: start over
|
||||
iface.state = MG_TCPIP_STATE_REQ, iface.lease_expire = 0;
|
||||
mg_ip_poll(&iface, true);
|
||||
ASSERT(iface.state == MG_TCPIP_STATE_UP);
|
||||
}
|
||||
#if MG_ENABLE_IPV6
|
||||
static void mif6_fn(struct mg_tcpip_if *ifp, int ev, void *ev_data) {
|
||||
|
||||
Reference in new issue
Block a user