mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 04:43:33 +00:00
lwip: fix tcp rx abnormal issue(tw8242)
In tcp_alloc(), initialize per_soc_tcp_wnd before initializing recv_wnd because recv_wnd depends on per_soc_tcp_wnd.
This commit is contained in:
@@ -1320,9 +1320,9 @@ tcp_rst(u32_t seqno, u32_t ackno,
|
||||
#endif
|
||||
#else
|
||||
#if LWIP_WND_SCALE
|
||||
tcphdr->wnd = PP_HTONS(((TCP_WND >> TCP_RCV_SCALE) & 0xFFFF));
|
||||
tcphdr->wnd = PP_HTONS(((TCP_WND_DEFAULT >> TCP_RCV_SCALE) & 0xFFFF));
|
||||
#else
|
||||
tcphdr->wnd = PP_HTONS(TCP_WND);
|
||||
tcphdr->wnd = PP_HTONS(TCP_WND_DEFAULT);
|
||||
#endif
|
||||
#endif
|
||||
tcphdr->chksum = 0;
|
||||
|
Reference in New Issue
Block a user