suricata
detect-engine-uint.h File Reference
Include dependency graph for detect-engine-uint.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  DetectU32Data_
 
struct  DetectU8Data_
 

Typedefs

typedef struct DetectU32Data_ DetectU32Data
 
typedef struct DetectU8Data_ DetectU8Data
 

Enumerations

enum  DetectUintMode {
  DETECT_UINT_LT = PREFILTER_U8HASH_MODE_LT, DETECT_UINT_EQ = PREFILTER_U8HASH_MODE_EQ, DETECT_UINT_GT = PREFILTER_U8HASH_MODE_GT, DETECT_UINT_RA = PREFILTER_U8HASH_MODE_RA,
  DETECT_UINT_LTE, DETECT_UINT_GTE
}
 

Functions

int DetectU32Match (const uint32_t parg, const DetectU32Data *du32)
 
DetectU32DataDetectU32Parse (const char *u32str)
 This function is used to parse u32 options passed via some u32 keyword. More...
 
void PrefilterPacketU32Set (PrefilterPacketHeaderValue *v, void *smctx)
 
bool PrefilterPacketU32Compare (PrefilterPacketHeaderValue v, void *smctx)
 
void DetectUintRegister (void)
 
int DetectU8Match (const uint8_t parg, const DetectU8Data *du8)
 
DetectU8DataDetectU8Parse (const char *u8str)
 This function is used to parse u8 options passed via some u8 keyword. More...
 

Detailed Description

Typedef Documentation

◆ DetectU32Data

typedef struct DetectU32Data_ DetectU32Data

◆ DetectU8Data

typedef struct DetectU8Data_ DetectU8Data

Enumeration Type Documentation

◆ DetectUintMode

Enumerator
DETECT_UINT_LT 
DETECT_UINT_EQ 
DETECT_UINT_GT 
DETECT_UINT_RA 
DETECT_UINT_LTE 
DETECT_UINT_GTE 

Definition at line 29 of file detect-engine-uint.h.

Function Documentation

◆ DetectU32Match()

int DetectU32Match ( const uint32_t  parg,
const DetectU32Data du32 
)

◆ DetectU32Parse()

DetectU32Data* DetectU32Parse ( const char *  u32str)

This function is used to parse u32 options passed via some u32 keyword.

Parameters
u32strPointer to the user provided u32 options
Return values
DetectU32Datapointer to DetectU32Data on success
NULLon failure

Definition at line 115 of file detect-engine-uint.c.

References DetectParsePcreExec(), and res.

Here is the call graph for this function:

◆ DetectU8Match()

int DetectU8Match ( const uint8_t  parg,
const DetectU8Data du8 
)

◆ DetectU8Parse()

DetectU8Data* DetectU8Parse ( const char *  u8str)

This function is used to parse u8 options passed via some u8 keyword.

Parameters
u8strPointer to the user provided u8 options
Return values
DetectU8Datapointer to DetectU8Data on success
NULLon failure

Definition at line 370 of file detect-engine-uint.c.

References DetectParsePcreExec(), and res.

Here is the call graph for this function:

◆ DetectUintRegister()

void DetectUintRegister ( void  )

Definition at line 284 of file detect-engine-uint.c.

◆ PrefilterPacketU32Compare()

bool PrefilterPacketU32Compare ( PrefilterPacketHeaderValue  v,
void *  smctx 
)

◆ PrefilterPacketU32Set()