fixed bug #34587: TCP_BUILD_MSS_OPTION doesn't consider netif->mtu, causes slow network

This commit is contained in:
Simon Goldschmidt
2011-10-18 20:11:39 +02:00
parent 2f58ef781c
commit 1f396946e5
3 changed files with 6 additions and 5 deletions

View File

@@ -1067,7 +1067,7 @@ tcp_output_segment(struct tcp_seg *seg, struct tcp_pcb *pcb)
//LWIP_ASSERT("seg->tcphdr not aligned", ((mem_ptr_t)seg->tcphdr % MEM_ALIGNMENT) == 0);
opts = (u32_t *)(void *)(seg->tcphdr + 1);
if (seg->flags & TF_SEG_OPTS_MSS) {
TCP_BUILD_MSS_OPTION(*opts);
*opts = TCP_BUILD_MSS_OPTION(pcb->mss);
opts += 1;
}
#if LWIP_TCP_TIMESTAMPS