From 252dcd86266dc7bd7ee811936f67217e2a3dceb2 Mon Sep 17 00:00:00 2001 From: likewise Date: Thu, 14 Oct 2004 12:24:52 +0000 Subject: [PATCH] Reverted back the TCP_BETWEEN macro. It does not work on all archs. --- src/include/lwip/tcp.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/include/lwip/tcp.h b/src/include/lwip/tcp.h index e9702a0c..e330ba48 100644 --- a/src/include/lwip/tcp.h +++ b/src/include/lwip/tcp.h @@ -114,7 +114,10 @@ void tcp_rexmit_rto (struct tcp_pcb *pcb); #define TCP_SEQ_GT(a,b) ((s32_t)((a)-(b)) > 0) #define TCP_SEQ_GEQ(a,b) ((s32_t)((a)-(b)) >= 0) /* is b<=a<=c? */ +#if 0 /* see bug #10548 */ #define TCP_SEQ_BETWEEN(a,b,c) ((c)-(b) >= (a)-(b)) +#endif +#define TCP_SEQ_BETWEEN(a,b,c) (TCP_SEQ_GEQ(a,b) && TCP_SEQ_LEQ(a,c)) #define TCP_FIN 0x01U #define TCP_SYN 0x02U #define TCP_RST 0x04U