suricata
|
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... | |
Definition in file detect-lua.h.
#define DETECT_LUA_MAX_BYTEVARS 15 |
Definition at line 39 of file detect-lua.h.
#define DETECT_LUA_MAX_FLOWINTS 15 |
Definition at line 38 of file detect-lua.h.
#define DETECT_LUA_MAX_FLOWVARS 15 |
Definition at line 37 of file detect-lua.h.
typedef struct DetectLuaData DetectLuaData |
typedef struct DetectLuaThreadData DetectLuaThreadData |
int DetectLuaMatchBuffer | ( | DetectEngineThreadCtx * | det_ctx, |
const Signature * | s, | ||
const SigMatchData * | smd, | ||
const uint8_t * | buffer, | ||
uint32_t | buffer_len, | ||
uint32_t | offset, | ||
Flow * | f | ||
) |
Definition at line 273 of file detect-lua.c.
References DetectLuaData::buffername, SigMatchData_::ctx, DetectThreadCtxGetKeywordThreadCtx(), LuaExtensionsMatchSetup(), LuaPushStringBuffer(), DetectLuaThreadData::luastate, offset, SCEnter, SCReturnInt, and DetectLuaData::thread_ctx_id.
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.
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().