Go to the documentation of this file.
24 #ifndef SURICATA_DETECT_LUA_H
25 #define SURICATA_DETECT_LUA_H
36 #define DETECT_LUA_MAX_FLOWVARS 15
37 #define DETECT_LUA_MAX_FLOWINTS 15
38 #define DETECT_LUA_MAX_BYTEVARS 15
65 const uint8_t *buffer, uint32_t buffer_len, uint32_t
offset,
int allow_restricted_functions
#define DETECT_LUA_MAX_FLOWVARS
void DetectLuaPostSetup(Signature *s)
post-sig parse function to set the sid,rev,gid into the ctx, as this isn't available yet during parsi...
struct DetectLuaData DetectLuaData
uint32_t flowvar[DETECT_LUA_MAX_FLOWVARS]
struct lua_State lua_State
int DetectLuaMatchBuffer(DetectEngineThreadCtx *det_ctx, const Signature *s, const SigMatchData *smd, const uint8_t *buffer, uint32_t buffer_len, uint32_t offset, Flow *f)
uint64_t instruction_limit
#define DETECT_LUA_MAX_BYTEVARS
#define DETECT_LUA_MAX_FLOWINTS
uint32_t bytevar[DETECT_LUA_MAX_BYTEVARS]
uint32_t flowint[DETECT_LUA_MAX_FLOWINTS]
struct DetectLuaThreadData DetectLuaThreadData
void DetectLuaRegister(void)
Registration function for keyword: lua.