mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 00:14:02 +00:00
Reverted back the TCP_BETWEEN macro. It does not work on all archs.
This commit is contained in:
parent
0ad7ea16d2
commit
252dcd8626
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user