suricata
ippair-bit.h File Reference
#include "ippair.h"
#include "util-var.h"
Include dependency graph for ippair-bit.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void IPPairBitInitCtx (void)
 
void IPPairBitRegisterTests (void)
 
int IPPairHasBits (IPPair *host)
 
int IPPairBitsTimedoutCheck (IPPair *h, struct timeval *ts)
 
void IPPairBitSet (IPPair *, uint32_t, uint32_t)
 
void IPPairBitUnset (IPPair *, uint32_t)
 
void IPPairBitToggle (IPPair *, uint32_t, uint32_t)
 
int IPPairBitIsset (IPPair *, uint32_t, uint32_t)
 
int IPPairBitIsnotset (IPPair *, uint32_t, uint32_t)
 

Detailed Description

Author
Victor Julien victo.nosp@m.r@in.nosp@m.linia.nosp@m.c.ne.nosp@m.t

Definition in file ippair-bit.h.

Function Documentation

void IPPairBitInitCtx ( void  )

Definition at line 49 of file ippair-bit.c.

References IPPairStorageRegister(), SC_ERR_IPPAIR_INIT, and SCLogError.

Referenced by DetectXbitFree(), and PostRunDeinit().

Here is the call graph for this function:

Here is the caller graph for this function:

int IPPairBitIsnotset ( IPPair ,
uint32_t  ,
uint32_t   
)

Definition at line 172 of file ippair-bit.c.

References XBit_::expire, IPPairAlloc(), IPPairCleanup(), IPPairFree(), IPPairInitConfig(), and TRUE.

Referenced by DetectXbitsRegister().

Here is the call graph for this function:

Here is the caller graph for this function:

int IPPairBitIsset ( IPPair ,
uint32_t  ,
uint32_t   
)

Definition at line 158 of file ippair-bit.c.

References XBit_::expire.

Referenced by DetectXbitsRegister().

Here is the caller graph for this function:

void IPPairBitRegisterTests ( void  )

Definition at line 493 of file ippair-bit.c.

References UtRegisterTest().

Here is the call graph for this function:

void IPPairBitSet ( IPPair ,
uint32_t  ,
uint32_t   
)

Definition at line 132 of file ippair-bit.c.

Referenced by DetectXbitsRegister().

Here is the caller graph for this function:

int IPPairBitsTimedoutCheck ( IPPair h,
struct timeval *  ts 
)
Return values
1ippair timed out wrt xbits
0ippair still has active (non-expired) xbits

Definition at line 68 of file ippair-bit.c.

References DETECT_XBITS, XBit_::expire, GenericVarAppend(), GenericVarRemove(), GenericVar_::idx, XBit_::idx, IPPairGetStorageById(), IPPairSetStorageById(), GenericVar_::next, XBit_::next, SCMalloc, GenericVar_::type, XBit_::type, unlikely, and XBitFree().

Referenced by IPPairGetActiveCount().

Here is the call graph for this function:

Here is the caller graph for this function:

void IPPairBitToggle ( IPPair ,
uint32_t  ,
uint32_t   
)

Definition at line 148 of file ippair-bit.c.

Referenced by DetectXbitsRegister().

Here is the caller graph for this function:

void IPPairBitUnset ( IPPair ,
uint32_t   
)

Definition at line 140 of file ippair-bit.c.

Referenced by DetectXbitsRegister().

Here is the caller graph for this function:

int IPPairHasBits ( IPPair host)

Definition at line 59 of file ippair-bit.c.

References IPPairGetStorageById().

Referenced by IPPairGetActiveCount().

Here is the call graph for this function:

Here is the caller graph for this function: