Skip to content

Commit 9ac70b0

Browse files
committed
fix(lwip): Fix mss_local is always subtract the IPv6 header size
Fix tcp max buf size is always 1440(tw18147) internal: 3f736959
1 parent 379e4d7 commit 9ac70b0

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ gwen:
1313
gitlab:
1414
espconn: 3a998034
1515
freertos: ac047746
16-
lwip: bfdb6ec2
16+
lwip: 24657d16
1717
driver: 7bee5263
1818
mbedtls: 1ac9f1f4
1919
ssl: eefb383a

lib/liblwip.a

84 Bytes
Binary file not shown.

third_party/lwip/core/tcp.c

+4-2
Original file line numberDiff line numberDiff line change
@@ -1787,8 +1787,10 @@ tcp_eff_send_mss_impl(u16_t sendmss, ipX_addr_t *dest
17871787
if (mtu != 0) {
17881788
mss_s = mtu - IP_HLEN - TCP_HLEN;
17891789
#if LWIP_IPV6
1790-
/* for IPv6, substract the difference in header size */
1791-
mss_s -= (IP6_HLEN - IP_HLEN);
1790+
if (isipv6) {
1791+
/* for IPv6, substract the difference in header size */
1792+
mss_s -= (IP6_HLEN - IP_HLEN);
1793+
}
17921794
#endif /* LWIP_IPV6 */
17931795
/* RFC 1122, chap 4.2.2.6:
17941796
* Eff.snd.MSS = min(SendMSS+20, MMS_S) - TCPhdrsize - IPoptionsize

0 commit comments

Comments
 (0)