From 4cb8192c1d4404a1c5af7e173f8e5c2b3af2ec90 Mon Sep 17 00:00:00 2001 From: kieranm Date: Mon, 20 Sep 2004 16:53:48 +0000 Subject: [PATCH] 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 --- src/core/tcp_in.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/tcp_in.c b/src/core/tcp_in.c index e008852d..b3b4c66f 100644 --- a/src/core/tcp_in.c +++ b/src/core/tcp_in.c @@ -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