mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-04 05:39:53 +00:00
Fixed bug #38315 tcp_eff_send_mss_impl() always subtract the difference in IPv6 header size
This commit is contained in:
parent
05aa0ad114
commit
28476e3b7b
@ -1707,8 +1707,10 @@ tcp_eff_send_mss_impl(u16_t sendmss, ipX_addr_t *dest
|
|||||||
if (mtu != 0) {
|
if (mtu != 0) {
|
||||||
mss_s = mtu - IP_HLEN - TCP_HLEN;
|
mss_s = mtu - IP_HLEN - TCP_HLEN;
|
||||||
#if LWIP_IPV6
|
#if LWIP_IPV6
|
||||||
|
if (isipv6) {
|
||||||
/* for IPv6, subtract the difference in header size */
|
/* for IPv6, subtract the difference in header size */
|
||||||
mss_s -= (IP6_HLEN - IP_HLEN);
|
mss_s -= (IP6_HLEN - IP_HLEN);
|
||||||
|
}
|
||||||
#endif /* LWIP_IPV6 */
|
#endif /* LWIP_IPV6 */
|
||||||
/* RFC 1122, chap 4.2.2.6:
|
/* RFC 1122, chap 4.2.2.6:
|
||||||
* Eff.snd.MSS = min(SendMSS+20, MMS_S) - TCPhdrsize - IPoptionsize
|
* Eff.snd.MSS = min(SendMSS+20, MMS_S) - TCPhdrsize - IPoptionsize
|
||||||
|
Loading…
Reference in New Issue
Block a user