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