mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-25 11:23:22 +00:00
Lwip:Backport some lwip bugs to 4.3
* Update submodule: git log --oneline 76303df2386902e0d7873be4217f1d9d1b50f982..6fa02bd30daa656f896c7a36248253fb3b97660d Detailed description of the changes: - dhcp: reduce the DHCP Request timeout(esp-lwip@6fa02bd3) - dhcp: optimization fine timer when dhcp start(esp-lwip@79182163) - ip6 timer: optimization lwip ip6 reassembly timer (esp-lwip@c943fc5a) - ip4 timer: optimization lwip ip4 reassembly timer (esp-lwip@17f41c9f) - dns timer: optimization lwip dns timer (esp-lwip@7f5ab42c) - napt: Fix clean compilation (espressif/esp-lwip@6132c975) - Lwip:add TCP Fin2 timeout configuration (espressif/esp-lwip@15b4400e) - napt: Fix IP forwarding when forward netif enable NAPT (espressif/esp-lwip@c950063f) - napt/stats: Move some napt counters to stats module (espressif/esp-lwip@475d658a) - ip_napt_maint: Fix timestamp overflow handling (espressif/esp-lwip@2e904508) - napt: Fixes and improvements (espressif/esp-lwip@fb1f3552)
This commit is contained in:
@@ -254,6 +254,14 @@
|
||||
*/
|
||||
#define ESP_DHCP_DISABLE_CLIENT_ID CONFIG_LWIP_DHCP_DISABLE_CLIENT_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))
|
||||
|
||||
/**
|
||||
* CONFIG_LWIP_DHCP_RESTORE_LAST_IP==1: Last valid IP address obtained from DHCP server
|
||||
* is restored after reset/power-up.
|
||||
@@ -376,6 +384,11 @@
|
||||
*/
|
||||
#define TCP_MSL CONFIG_LWIP_TCP_MSL
|
||||
|
||||
/**
|
||||
* TCP_FIN_WAIT_TIMEOUT: The maximum FIN segment lifetime in milliseconds
|
||||
*/
|
||||
#define TCP_FIN_WAIT_TIMEOUT CONFIG_LWIP_TCP_FIN_WAIT_TIMEOUT
|
||||
|
||||
/**
|
||||
* TCP_MAXRTX: Maximum number of retransmissions of data segments.
|
||||
*/
|
||||
@@ -996,9 +1009,23 @@
|
||||
#ifdef CONFIG_LWIP_TIMERS_ONDEMAND
|
||||
#define ESP_LWIP_IGMP_TIMERS_ONDEMAND 1
|
||||
#define ESP_LWIP_MLD6_TIMERS_ONDEMAND 1
|
||||
#define ESP_LWIP_DHCP_FINE_TIMERS_ONDEMAND 1
|
||||
#define ESP_LWIP_DNS_TIMERS_ONDEMAND 1
|
||||
#if IP_REASSEMBLY
|
||||
#define ESP_LWIP_IP4_REASSEMBLY_TIMERS_ONDEMAND 1
|
||||
#endif /* IP_REASSEMBLY */
|
||||
#if LWIP_IPV6_REASS
|
||||
#define ESP_LWIP_IP6_REASSEMBLY_TIMERS_ONDEMAND 1
|
||||
#endif /* LWIP_IPV6_REASS */
|
||||
#else
|
||||
#define ESP_LWIP_IGMP_TIMERS_ONDEMAND 0
|
||||
#define ESP_LWIP_MLD6_TIMERS_ONDEMAND 0
|
||||
#define ESP_LWIP_DHCP_FINE_TIMERS_ONDEMAND 0
|
||||
#define ESP_LWIP_DNS_TIMERS_ONDEMAND 0
|
||||
#if IP_REASSEMBLY
|
||||
#define ESP_LWIP_IP4_REASSEMBLY_TIMERS_ONDEMAND 0
|
||||
#endif /* IP_REASSEMBLY */
|
||||
#if LWIP_IPV6_REASS
|
||||
#define ESP_LWIP_IP6_REASSEMBLY_TIMERS_ONDEMAND 0
|
||||
#endif /* LWIP_IPV6_REASS */
|
||||
#endif
|
||||
|
||||
#define TCP_SND_BUF CONFIG_LWIP_TCP_SND_BUF_DEFAULT
|
||||
|
||||
Reference in New Issue
Block a user