114 |
#define TCP_SEQ_GT(a,b) ((s32_t)((a)-(b)) > 0) |
#define TCP_SEQ_GT(a,b) ((s32_t)((a)-(b)) > 0) |
115 |
#define TCP_SEQ_GEQ(a,b) ((s32_t)((a)-(b)) >= 0) |
#define TCP_SEQ_GEQ(a,b) ((s32_t)((a)-(b)) >= 0) |
116 |
/* is b<=a<=c? */ |
/* is b<=a<=c? */ |
117 |
|
#if 0 /* see bug #10548 */ |
118 |
#define TCP_SEQ_BETWEEN(a,b,c) ((c)-(b) >= (a)-(b)) |
#define TCP_SEQ_BETWEEN(a,b,c) ((c)-(b) >= (a)-(b)) |
119 |
|
#endif |
120 |
|
#define TCP_SEQ_BETWEEN(a,b,c) (TCP_SEQ_GEQ(a,b) && TCP_SEQ_LEQ(a,c)) |
121 |
#define TCP_FIN 0x01U |
#define TCP_FIN 0x01U |
122 |
#define TCP_SYN 0x02U |
#define TCP_SYN 0x02U |
123 |
#define TCP_RST 0x04U |
#define TCP_RST 0x04U |