4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-19 10:33:31 +08:00

[lwIP] merge TCP_OVERSIZE code.

This commit is contained in:
Bernard Xiong 2016-05-20 14:19:50 +08:00
parent c5949c2736
commit 9f08d09ae1

View File

@ -1248,6 +1248,12 @@ tcp_rexmit_rto(struct tcp_pcb *pcb)
for (seg = pcb->unacked; seg->next != NULL; seg = seg->next);
/* concatenate unsent queue after unacked queue */
seg->next = pcb->unsent;
#if TCP_OVERSIZE && TCP_OVERSIZE_DBGCHECK
/* if last unsent changed, we need to update unsent_oversize */
if (pcb->unsent == NULL) {
pcb->unsent_oversize = seg->oversize_left;
}
#endif /* TCP_OVERSIZE && TCP_OVERSIZE_DBGCHECK*/
/* unsent queue is the concatenated queue (of unacked, unsent) */
pcb->unsent = pcb->unacked;
/* unacked queue is now empty */