Skip to content

Commit

Permalink
[lwIP] merge TCP_OVERSIZE code.
Browse files Browse the repository at this point in the history
  • Loading branch information
BernardXiong committed May 20, 2016
1 parent c5949c2 commit 9f08d09
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/net/lwip-1.4.1/src/core/tcp_out.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 9f08d09

Please sign in to comment.