Reverted back the TCP_BETWEEN macro. It does not work on all archs.

This commit is contained in:
likewise 2004-10-14 12:24:52 +00:00
parent 0ad7ea16d2
commit 252dcd8626

View File

@ -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_GT(a,b) ((s32_t)((a)-(b)) > 0)
#define TCP_SEQ_GEQ(a,b) ((s32_t)((a)-(b)) >= 0) #define TCP_SEQ_GEQ(a,b) ((s32_t)((a)-(b)) >= 0)
/* is b<=a<=c? */ /* is b<=a<=c? */
#if 0 /* see bug #10548 */
#define TCP_SEQ_BETWEEN(a,b,c) ((c)-(b) >= (a)-(b)) #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_FIN 0x01U
#define TCP_SYN 0x02U #define TCP_SYN 0x02U
#define TCP_RST 0x04U #define TCP_RST 0x04U