From 95710c4276b4429ca50cd23a1007e381a0dd48f3 Mon Sep 17 00:00:00 2001 From: xueyunfei Date: Mon, 26 Oct 2020 16:21:29 +0800 Subject: [PATCH] fix(dhcp): Fix dhcp renew fail in t1 and will renew ip in t2 every 1s util renew successful.(backport 2.0.3) --- src/core/ipv4/dhcp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/ipv4/dhcp.c b/src/core/ipv4/dhcp.c index a749d770..411670fa 100644 --- a/src/core/ipv4/dhcp.c +++ b/src/core/ipv4/dhcp.c @@ -540,6 +540,11 @@ dhcp_timeout(struct netif *netif) dhcp_discover(netif); } } +#if ESP_DHCP + else if (dhcp->state == DHCP_STATE_REBINDING) { + dhcp->t2_rebind_time = 1; + } +#endif } /**