818 |
rationale is that lwIP puts all outstanding segments on the |
rationale is that lwIP puts all outstanding segments on the |
819 |
->unsent list after a retransmission, so these segments may |
->unsent list after a retransmission, so these segments may |
820 |
in fact have been sent once. */ |
in fact have been sent once. */ |
|
/* KJM 13th July 2004 |
|
|
I don't think is is necessary as we no longer move all unacked |
|
|
segments on the unsent queue when performing retransmit */ |
|
|
#if 0 |
|
821 |
while (pcb->unsent != NULL && |
while (pcb->unsent != NULL && |
822 |
/*TCP_SEQ_LEQ(ntohl(pcb->unsent->tcphdr->seqno) + TCP_TCPLEN(pcb->unsent), ackno) && |
/*TCP_SEQ_LEQ(ntohl(pcb->unsent->tcphdr->seqno) + TCP_TCPLEN(pcb->unsent), ackno) && |
823 |
TCP_SEQ_LEQ(ackno, pcb->snd_max)*/ |
TCP_SEQ_LEQ(ackno, pcb->snd_max)*/ |
842 |
pcb->snd_nxt = htonl(pcb->unsent->tcphdr->seqno); |
pcb->snd_nxt = htonl(pcb->unsent->tcphdr->seqno); |
843 |
} |
} |
844 |
} |
} |
|
#endif |
|
845 |
/* End of ACK for new data processing. */ |
/* End of ACK for new data processing. */ |
846 |
|
|
847 |
LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_receive: pcb->rttest %u rtseq %lu ackno %lu\n", |
LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_receive: pcb->rttest %u rtseq %lu ackno %lu\n", |