Kieran Mansley - kjm25@cam.ac.uk - 20th September 2004

* Corrected "out by one" error on one of the TCP_SEQ_BETWEEN macro calls introduced recently
This commit is contained in:
kieranm 2004-09-20 16:53:48 +00:00
parent 2ed5bc5195
commit 4cb8192c1d

View File

@ -1122,7 +1122,7 @@ tcp_receive(struct tcp_pcb *pcb)
} else
/*if (TCP_SEQ_LT(prev->tcphdr->seqno, seqno) &&
TCP_SEQ_LT(seqno, next->tcphdr->seqno)) {*/
if(TCP_SEQ_BETWEEN(seqno, prev->tcphdr->seqno, next->tcphdr->seqno-1)){
if(TCP_SEQ_BETWEEN(seqno, prev->tcphdr->seqno+1, next->tcphdr->seqno-1)){
/* The sequence number of the incoming segment is in
between the sequence numbers of the previous and
the next segment on ->ooseq. We trim and insert the