suricata
detect-bytemath.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void DetectBytemathRegister (void)
 Registers the keyword handlers for the "byte_math" keyword. More...
 
SigMatchDetectByteMathRetrieveSMVar (const char *, const Signature *)
 Lookup the SigMatch for a named byte_math variable. More...
 
int DetectByteMathDoMatch (DetectEngineThreadCtx *, const SigMatchData *, const Signature *, const uint8_t *, uint16_t, uint64_t, uint64_t *, uint8_t)
 

Detailed Description

Author
Jeff Lucovsky jeff@.nosp@m.luco.nosp@m.vsky..nosp@m.org

Definition in file detect-bytemath.h.

Function Documentation

◆ DetectByteMathDoMatch()

int DetectByteMathDoMatch ( DetectEngineThreadCtx ,
const SigMatchData ,
const Signature ,
const uint8_t *  ,
uint16_t  ,
uint64_t  ,
uint64_t *  ,
uint8_t   
)

◆ DetectBytemathRegister()

void DetectBytemathRegister ( void  )

Registers the keyword handlers for the "byte_math" keyword.

Definition at line 68 of file detect-bytemath.c.

References DETECT_BYTEMATH, SigTableElmt_::Match, SigTableElmt_::name, SigTableElmt_::Setup, and sigmatch_table.

Referenced by SigTableSetup().

Here is the caller graph for this function:

◆ DetectByteMathRetrieveSMVar()

SigMatch* DetectByteMathRetrieveSMVar ( const char *  arg,
const Signature s 
)

Lookup the SigMatch for a named byte_math variable.

Parameters
argThe name of the byte_math variable to lookup.
sPointer the signature to look in.
Return values
Apointer to the SigMatch if found, otherwise NULL.

Definition at line 404 of file detect-bytemath.c.

References Signature_::init_data, and SignatureInitData_::smlists_array_size.

Referenced by DetectByteRetrieveSMVar().

Here is the caller graph for this function: