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

Go to the source code of this file.

Data Structures

struct  DetectLuaThreadData
 
struct  DetectLuaData
 

Macros

#define DETECT_LUA_MAX_FLOWVARS   15
 
#define DETECT_LUA_MAX_FLOWINTS   15
 
#define DETECT_LUA_MAX_BYTEVARS   15
 

Typedefs

typedef struct DetectLuaThreadData DetectLuaThreadData
 
typedef struct DetectLuaData DetectLuaData
 

Functions

void DetectLuaRegister (void)
 Registration function for keyword: lua. More...
 
int DetectLuaMatchBuffer (DetectEngineThreadCtx *det_ctx, const Signature *s, const SigMatchData *smd, const uint8_t *buffer, uint32_t buffer_len, uint32_t offset, Flow *f)
 
void DetectLuaPostSetup (Signature *s)
 post-sig parse function to set the sid,rev,gid into the ctx, as this isn't available yet during parsing. More...
 

Detailed Description

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

Definition in file detect-lua.h.

Macro Definition Documentation

◆ DETECT_LUA_MAX_BYTEVARS

#define DETECT_LUA_MAX_BYTEVARS   15

Definition at line 39 of file detect-lua.h.

◆ DETECT_LUA_MAX_FLOWINTS

#define DETECT_LUA_MAX_FLOWINTS   15

Definition at line 38 of file detect-lua.h.

◆ DETECT_LUA_MAX_FLOWVARS

#define DETECT_LUA_MAX_FLOWVARS   15

Definition at line 37 of file detect-lua.h.

Typedef Documentation

◆ DetectLuaData

typedef struct DetectLuaData DetectLuaData

◆ DetectLuaThreadData

Function Documentation

◆ DetectLuaMatchBuffer()

int DetectLuaMatchBuffer ( DetectEngineThreadCtx det_ctx,
const Signature s,
const SigMatchData smd,
const uint8_t *  buffer,
uint32_t  buffer_len,
uint32_t  offset,
Flow f 
)

◆ DetectLuaPostSetup()

void DetectLuaPostSetup ( Signature s)

post-sig parse function to set the sid,rev,gid into the ctx, as this isn't available yet during parsing.

Definition at line 1021 of file detect-lua.c.

References SigMatch_::ctx, DETECT_LUA, DETECT_SM_LIST_MAX, DetectLuaData::gid, Signature_::gid, Signature_::id, Signature_::init_data, SigMatch_::next, DetectLuaData::rev, Signature_::rev, DetectLuaData::sid, SignatureInitData_::smlists, and SigMatch_::type.

◆ DetectLuaRegister()

void DetectLuaRegister ( void  )

Registration function for keyword: lua.

Definition at line 78 of file detect-lua.c.

References SigTableElmt_::desc, DETECT_LUA, SigTableElmt_::Match, SigTableElmt_::name, sigmatch_table, and SigTableElmt_::url.

Referenced by SigTableSetup().

Here is the caller graph for this function: