Fix up initialization and hopefully make the SEQ macro's fix up an 64bit issue we're seeing...

remotes/origin/master-1.0.x
Victor Julien 15 years ago
parent 18aa59b391
commit 9b422c443e

@ -73,11 +73,11 @@ enum
/* Macro's for comparing Sequence numbers
* Page 810 from TCP/IP Illustrated, Volume 2. */
#define SEQ_EQ(a,b) ((int)((a) - (b)) == 0)
#define SEQ_LT(a,b) ((int)((a) - (b)) < 0)
#define SEQ_LEQ(a,b) ((int)((a) - (b)) <= 0)
#define SEQ_GT(a,b) ((int)((a) - (b)) > 0)
#define SEQ_GEQ(a,b) ((int)((a) - (b)) >= 0)
#define SEQ_EQ(a,b) ((int32_t)((a) - (b)) == 0)
#define SEQ_LT(a,b) ((int32_t)((a) - (b)) < 0)
#define SEQ_LEQ(a,b) ((int32_t)((a) - (b)) <= 0)
#define SEQ_GT(a,b) ((int32_t)((a) - (b)) > 0)
#define SEQ_GEQ(a,b) ((int32_t)((a) - (b)) >= 0)
typedef struct TcpSession_ {
uint8_t state;

@ -76,7 +76,7 @@ static Pool *ssn_pool = NULL;
static SCMutex ssn_pool_mutex;
#ifdef DEBUG
static uint64_t ssn_pool_cnt;
static uint64_t ssn_pool_cnt = 0;
static SCMutex ssn_pool_cnt_mutex;
#endif

Loading…
Cancel
Save