|
suricata
|


Go to the source code of this file.
Data Structures | |
| struct | DetectLuaThreadData |
| struct | DetectLuaDataBytevarEntry_ |
| 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 DetectLuaDataBytevarEntry_ | DetectLuaDataBytevarEntry |
| 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 | LuaDumpStack (lua_State *state, const char *prefix) |
| dump stack from lua state to screen More... | |
Definition in file detect-lua.h.
| #define DETECT_LUA_MAX_BYTEVARS 15 |
Definition at line 38 of file detect-lua.h.
| #define DETECT_LUA_MAX_FLOWINTS 15 |
Definition at line 37 of file detect-lua.h.
| #define DETECT_LUA_MAX_FLOWVARS 15 |
Definition at line 36 of file detect-lua.h.
| typedef struct DetectLuaData DetectLuaData |
| typedef struct DetectLuaDataBytevarEntry_ DetectLuaDataBytevarEntry |
| 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 240 of file detect-lua.c.
References DetectLuaData::buffername, SigMatchData_::ctx, DetectThreadCtxGetKeywordThreadCtx(), LuaExtensionsMatchSetup(), LuaPushStringBuffer(), DetectLuaThreadData::luastate, offset, SCEnter, SCReturnInt, and DetectLuaData::thread_ctx_id.

| void DetectLuaRegister | ( | void | ) |
Registration function for keyword: lua.
Definition at line 83 of file detect-lua.c.
References SigTableElmt_::desc, DETECT_LUA, SigTableElmt_::Match, SigTableElmt_::name, sigmatch_table, and SigTableElmt_::url.
Referenced by SigTableSetup().

| void LuaDumpStack | ( | lua_State * | state, |
| const char * | prefix | ||
| ) |