mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-12 03:37:23 +00:00
Kieran Mansley - 14th July 2004
* Only move a single segment from the unacked queue to the unsent queue when performing a retransmit
This commit is contained in:
parent
c356f560e8
commit
8273b54108
@ -577,14 +577,10 @@ tcp_rexmit(struct tcp_pcb *pcb)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Move all unacked segments to the unsent queue. */
|
/* Move the first unacked segment to the unsent queue */
|
||||||
for (seg = pcb->unacked; seg->next != NULL; seg = seg->next);
|
seg = pcb->unacked->next;
|
||||||
|
pcb->unacked->next = pcb->unsent;
|
||||||
seg->next = pcb->unsent;
|
pcb->unacked = seg;
|
||||||
pcb->unsent = pcb->unacked;
|
|
||||||
|
|
||||||
pcb->unacked = NULL;
|
|
||||||
|
|
||||||
|
|
||||||
pcb->snd_nxt = ntohl(pcb->unsent->tcphdr->seqno);
|
pcb->snd_nxt = ntohl(pcb->unsent->tcphdr->seqno);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user