Skip to content

Commit

Permalink
dhcp: Continuously try to rebind in t2 (if failed in t1)
Browse files Browse the repository at this point in the history
The root cause of this issue is big UDP traffic consuming the buffer
so the DHCP doesn't have the bandwitdh to access the Tx buffer.
More info espressif/esp-lwip!217

Ref IDF-4817
  • Loading branch information
ESP-YJM authored and david-cermak committed Mar 25, 2022
1 parent 729d724 commit 0633e7d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/ipv4/dhcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,11 @@ dhcp_timeout(struct netif *netif)
dhcp_discover(netif);
}
}
#if ESP_LWIP
else if (dhcp->state == DHCP_STATE_REBINDING) {
dhcp->t2_rebind_time = 1;
}
#endif /* ESP_LWIP */
}

/**
Expand Down

0 comments on commit 0633e7d

Please sign in to comment.