mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-03-19 16:20:45 +00:00
fixed bug #35945: SYN packet should provide the recv MSS not the send MSS
This commit is contained in:
parent
fe7bbae8a7
commit
2b9933eb1e
@ -66,6 +66,10 @@ HISTORY
|
|||||||
|
|
||||||
++ Bugfixes:
|
++ Bugfixes:
|
||||||
|
|
||||||
|
2012-03-27: Simon Goldschmidt (patch by Mason)
|
||||||
|
* tcp_out.c: fixed bug #35945: SYN packet should provide the recv MSS not the
|
||||||
|
send MSS
|
||||||
|
|
||||||
2012-03-22: Simon Goldschmidt
|
2012-03-22: Simon Goldschmidt
|
||||||
* ip4.c: fixed bug #35927: missing refragmentaion in ip_forward
|
* ip4.c: fixed bug #35927: missing refragmentaion in ip_forward
|
||||||
|
|
||||||
|
@ -1066,7 +1066,7 @@ tcp_output_segment(struct tcp_seg *seg, struct tcp_pcb *pcb)
|
|||||||
packets, so ignore it here */
|
packets, so ignore it here */
|
||||||
opts = (u32_t *)(void *)(seg->tcphdr + 1);
|
opts = (u32_t *)(void *)(seg->tcphdr + 1);
|
||||||
if (seg->flags & TF_SEG_OPTS_MSS) {
|
if (seg->flags & TF_SEG_OPTS_MSS) {
|
||||||
*opts = TCP_BUILD_MSS_OPTION(pcb->mss);
|
*opts = TCP_BUILD_MSS_OPTION(tcp_eff_send_mss(TCP_MSS, &pcb->remote_ip));
|
||||||
opts += 1;
|
opts += 1;
|
||||||
}
|
}
|
||||||
#if LWIP_TCP_TIMESTAMPS
|
#if LWIP_TCP_TIMESTAMPS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user