Merge branch 'bugfix/fix_long_time_to_get_ip_v4.4' into 'release/v4.4'

lwip: fix the bug that long time to get IP (backport v4.4)

See merge request espressif/esp-idf!21462
pull/11369/head
Jiang Jiang Jian 2022-12-07 21:49:28 +08:00
commit 6da4c6b513
2 zmienionych plików z 9 dodań i 1 usunięć

@ -1 +1 @@
Subproject commit 79182163e9e77547e58a6aa34db94902b9812cb3
Subproject commit 6fa02bd30daa656f896c7a36248253fb3b97660d

Wyświetl plik

@ -254,6 +254,14 @@
*/
#define ESP_DHCP_DISABLE_VENDOR_CLASS_IDENTIFIER CONFIG_LWIP_DHCP_DISABLE_VENDOR_CLASS_ID
#define DHCP_DEFINE_CUSTOM_TIMEOUTS 1
/* Since for embedded devices it's not that hard to miss a discover packet, so lower
* the discover retry backoff time from (2,4,8,16,32,60,60)s to (500m,1,2,4,8,15,15)s.
*/
#define DHCP_REQUEST_TIMEOUT_SEQUENCE(state, tries) (state == DHCP_STATE_REQUESTING ? \
(uint16_t)(1 * 1000) : \
(uint16_t)(((tries) < 6 ? 1 << (tries) : 60) * 250))
/*
------------------------------------
---------- AUTOIP options ----------