suricata
detect-engine-uint.c File Reference
#include "suricata-common.h"
#include "util-byte.h"
#include "detect-parse.h"
#include "detect-engine-uint.h"
Include dependency graph for detect-engine-uint.c:

Go to the source code of this file.

Functions

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)
 
int DetectU64Match (const uint64_t parg, const DetectUintData_u64 *du64)
 
DetectUintData_u64 * DetectU64Parse (const char *u64str)
 

Detailed Description

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.

Referenced by DetectBsizeMatch().

Here is the caller graph for this function:

◆ 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.