We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb644c1 commit d481a1fCopy full SHA for d481a1f
third_party/lwip/core/dhcp.c
@@ -383,7 +383,7 @@ dhcp_fine_tmr()
383
/* only act on DHCP configured interfaces */
384
if (netif->dhcp != NULL) {
385
/*add DHCP retries processing by LiuHan*/
386
- if (DHCP_MAXRTX != 0) {
+ if (DHCP_MAXRTX != 0 && netif->dhcp->state != DHCP_RENEWING) {
387
if (netif->dhcp->tries >= DHCP_MAXRTX){
388
os_printf("DHCP timeout\n");
389
if (netif->dhcp_event != NULL)
0 commit comments