fixed bug #35945: SYN packet should provide the recv MSS not the send MSS

This commit is contained in:
goldsimon
2012-03-27 20:18:23 +02:00
parent 7043983acc
commit a558c01589
2 changed files with 5 additions and 1 deletions

View File

@@ -1071,7 +1071,7 @@ tcp_output_segment(struct tcp_seg *seg, struct tcp_pcb *pcb)
packets, so ignore it here */
opts = (u32_t *)(void *)(seg->tcphdr + 1);
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->local_ip, &pcb->remote_ip, PCB_ISIPV6(pcb)));
opts += 1;
}
#if LWIP_TCP_TIMESTAMPS