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.

Macros

#define DETECT_UINT_GT   DetectUintModeGt
 
#define DETECT_UINT_GTE   DetectUintModeGte
 
#define DETECT_UINT_RA   DetectUintModeRange
 
#define DETECT_UINT_EQ   DetectUintModeEqual
 
#define DETECT_UINT_NE   DetectUintModeNe
 
#define DETECT_UINT_LT   DetectUintModeLt
 
#define DETECT_UINT_LTE   DetectUintModeLte
 

Typedefs

typedef DetectUintData_u64 DetectU64Data
 
typedef DetectUintData_u32 DetectU32Data
 
typedef DetectUintData_u16 DetectU16Data
 
typedef DetectUintData_u8 DetectU8Data
 

Functions

int DetectU64Match (const uint64_t parg, const DetectUintData_u64 *du64)
 
DetectUintData_u64 * DetectU64Parse (const char *u64str)
 
int DetectU32Match (const uint32_t parg, const DetectUintData_u32 *du32)
 
DetectUintData_u32 * DetectU32Parse (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)
 
int DetectU8Match (const uint8_t parg, const DetectUintData_u8 *du8)
 
DetectUintData_u8 * DetectU8Parse (const char *u8str)
 This function is used to parse u8 options passed via some u8 keyword. More...
 
void PrefilterPacketU8Set (PrefilterPacketHeaderValue *v, void *smctx)
 
bool PrefilterPacketU8Compare (PrefilterPacketHeaderValue v, void *smctx)
 
int DetectU16Match (const uint16_t parg, const DetectUintData_u16 *du16)
 
DetectUintData_u16 * DetectU16Parse (const char *u16str)
 This function is used to parse u16 options passed via some u16 keyword. More...
 
void PrefilterPacketU16Set (PrefilterPacketHeaderValue *v, void *smctx)
 
bool PrefilterPacketU16Compare (PrefilterPacketHeaderValue v, void *smctx)
 

Detailed Description

Macro Definition Documentation

◆ DETECT_UINT_EQ

#define DETECT_UINT_EQ   DetectUintModeEqual

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

◆ DETECT_UINT_GT

#define DETECT_UINT_GT   DetectUintModeGt

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

◆ DETECT_UINT_GTE

#define DETECT_UINT_GTE   DetectUintModeGte

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

◆ DETECT_UINT_LT

#define DETECT_UINT_LT   DetectUintModeLt

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

◆ DETECT_UINT_LTE

#define DETECT_UINT_LTE   DetectUintModeLte

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

◆ DETECT_UINT_NE

#define DETECT_UINT_NE   DetectUintModeNe

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

◆ DETECT_UINT_RA

#define DETECT_UINT_RA   DetectUintModeRange

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

Typedef Documentation

◆ DetectU16Data

typedef DetectUintData_u16 DetectU16Data

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

◆ DetectU32Data

typedef DetectUintData_u32 DetectU32Data

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

◆ DetectU64Data

typedef DetectUintData_u64 DetectU64Data

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

◆ DetectU8Data

typedef DetectUintData_u8 DetectU8Data

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

Function Documentation

◆ DetectU16Match()

int DetectU16Match ( const uint16_t  parg,
const DetectUintData_u16 *  du16 
)

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

◆ DetectU16Parse()

DetectUintData_u16* DetectU16Parse ( const char *  u16str)

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

Parameters
u16strPointer to the user provided u16 options
Return values
DetectU16Datapointer to DetectU16Data on success
NULLon failure

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

◆ DetectU32Match()

int DetectU32Match ( const uint32_t  parg,
const DetectUintData_u32 *  du32 
)

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

◆ DetectU32Parse()

DetectUintData_u32* 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 45 of file detect-engine-uint.c.

◆ DetectU64Match()

int DetectU64Match ( const uint64_t  parg,
const DetectUintData_u64 *  du64 
)

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

◆ DetectU64Parse()

DetectUintData_u64* DetectU64Parse ( const char *  u64str)

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

◆ DetectU8Match()

int DetectU8Match ( const uint8_t  parg,
const DetectUintData_u8 *  du8 
)

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

◆ DetectU8Parse()

DetectUintData_u8* 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 85 of file detect-engine-uint.c.

◆ PrefilterPacketU16Compare()

bool PrefilterPacketU16Compare ( PrefilterPacketHeaderValue  v,
void *  smctx 
)

◆ PrefilterPacketU16Set()

void PrefilterPacketU16Set ( PrefilterPacketHeaderValue v,
void *  smctx 
)

◆ PrefilterPacketU32Compare()

bool PrefilterPacketU32Compare ( PrefilterPacketHeaderValue  v,
void *  smctx 
)

◆ PrefilterPacketU32Set()

void PrefilterPacketU32Set ( PrefilterPacketHeaderValue v,
void *  smctx 
)

◆ PrefilterPacketU8Compare()

bool PrefilterPacketU8Compare ( PrefilterPacketHeaderValue  v,
void *  smctx 
)

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

References PrefilterPacketHeaderValue::u8.

◆ PrefilterPacketU8Set()

void PrefilterPacketU8Set ( PrefilterPacketHeaderValue v,
void *  smctx 
)

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

References PrefilterPacketHeaderValue::u8.