suricata
|
#include "lua.h"
#include "lualib.h"
#include "lauxlib.h"
#include "threadvars.h"
#include "detect.h"
Go to the source code of this file.
Data Structures | |
struct | LuaStreamingBuffer_ |
Typedefs | |
typedef struct LuaStreamingBuffer_ | LuaStreamingBuffer |
Functions | |
lua_State * | LuaGetState (void) |
void | LuaReturnState (lua_State *s) |
ThreadVars * | LuaStateGetThreadVars (lua_State *luastate) |
get tv pointer from the lua state More... | |
Packet * | LuaStateGetPacket (lua_State *luastate) |
get packet pointer from the lua state More... | |
void * | LuaStateGetTX (lua_State *luastate) |
get tx pointer from the lua state More... | |
uint64_t | LuaStateGetTxId (lua_State *luastate) |
get tx id from the lua state More... | |
Flow * | LuaStateGetFlow (lua_State *luastate) |
get flow pointer from lua state More... | |
PacketAlert * | LuaStateGetPacketAlert (lua_State *luastate) |
get packet alert pointer from the lua state More... | |
Signature * | LuaStateGetSignature (lua_State *luastate) |
get signature pointer from the lua state More... | |
File * | LuaStateGetFile (lua_State *luastate) |
get file pointer from the lua state More... | |
DetectEngineThreadCtx * | LuaStateGetDetCtx (lua_State *luastate) |
get detect engine thread context pointer from the lua state More... | |
LuaStreamingBuffer * | LuaStateGetStreamingBuffer (lua_State *luastate) |
int | LuaStateGetDirection (lua_State *luastate) |
get packet pointer from the lua state More... | |
void | LuaStateSetPacket (lua_State *luastate, Packet *p) |
void | LuaStateSetTX (lua_State *luastate, void *tx, const uint64_t tx_id) |
void | LuaStateSetFlow (lua_State *luastate, Flow *f) |
set a flow pointer in the lua state More... | |
void | LuaStateSetPacketAlert (lua_State *luastate, PacketAlert *pa) |
void | LuaStateSetSignature (lua_State *luastate, const Signature *s) |
void | LuaStateSetFile (lua_State *luastate, File *file) |
void | LuaStateSetDetCtx (lua_State *luastate, DetectEngineThreadCtx *det_ctx) |
void | LuaStateSetThreadVars (lua_State *luastate, ThreadVars *tv) |
void | LuaStateSetStreamingBuffer (lua_State *luastate, LuaStreamingBuffer *b) |
void | LuaStateSetDirection (lua_State *luastate, int direction) |
void | LuaPrintStack (lua_State *state) |
dump stack from lua state to screen More... | |
int | LuaPushStringBuffer (lua_State *luastate, const uint8_t *input, size_t input_len) |
int | LuaPushInteger (lua_State *luastate, lua_Integer n) |
Definition in file util-lua.h.
typedef struct LuaStreamingBuffer_ LuaStreamingBuffer |
lua_State* LuaGetState | ( | void | ) |
Definition at line 57 of file util-lua.c.
void LuaPrintStack | ( | lua_State * | state | ) |
int LuaPushInteger | ( | lua_State * | luastate, |
lua_Integer | n | ||
) |
Definition at line 340 of file util-lua.c.
int LuaPushStringBuffer | ( | lua_State * | luastate, |
const uint8_t * | input, | ||
size_t | input_len | ||
) |
Definition at line 319 of file util-lua.c.
Referenced by DetectLuaMatchBuffer(), DNP3PushPoint(), and LuaPushTableKeyValueArray().
void LuaReturnState | ( | lua_State * | s | ) |
Definition at line 64 of file util-lua.c.
DetectEngineThreadCtx* LuaStateGetDetCtx | ( | lua_State * | luastate | ) |
get detect engine thread context pointer from the lua state
get detect engine thread context pointer from the lua state
Definition at line 239 of file util-lua.c.
References lua_ext_key_det_ctx.
int LuaStateGetDirection | ( | lua_State * | luastate | ) |
get packet pointer from the lua state
Definition at line 270 of file util-lua.c.
References lua_ext_key_direction.
get file pointer from the lua state
Definition at line 223 of file util-lua.c.
References lua_ext_key_file.
get flow pointer from lua state
f | flow pointer or NULL if it was not set |
Definition at line 161 of file util-lua.c.
References lua_ext_key_flow, and lua_ext_key_flow_lock_hint.
Referenced by LuaStateNeedProto().
get packet pointer from the lua state
Definition at line 118 of file util-lua.c.
References lua_ext_key_p.
PacketAlert* LuaStateGetPacketAlert | ( | lua_State * | luastate | ) |
get packet alert pointer from the lua state
Definition at line 191 of file util-lua.c.
References lua_ext_key_pa.
get signature pointer from the lua state
Definition at line 207 of file util-lua.c.
References lua_ext_key_s.
LuaStreamingBuffer* LuaStateGetStreamingBuffer | ( | lua_State * | luastate | ) |
Definition at line 254 of file util-lua.c.
References lua_ext_key_streaming_buffer.
ThreadVars* LuaStateGetThreadVars | ( | lua_State * | luastate | ) |
get tv pointer from the lua state
Definition at line 102 of file util-lua.c.
References lua_ext_key_tv, and tv.
void* LuaStateGetTX | ( | lua_State * | luastate | ) |
get tx pointer from the lua state
Definition at line 134 of file util-lua.c.
References lua_ext_key_tx.
uint64_t LuaStateGetTxId | ( | lua_State * | luastate | ) |
get tx id from the lua state
Definition at line 143 of file util-lua.c.
References lua_ext_key_tx_id.
void LuaStateSetDetCtx | ( | lua_State * | luastate, |
DetectEngineThreadCtx * | det_ctx | ||
) |
Definition at line 247 of file util-lua.c.
References lua_ext_key_det_ctx.
void LuaStateSetDirection | ( | lua_State * | luastate, |
int | direction | ||
) |
Definition at line 278 of file util-lua.c.
References lua_ext_key_direction.
Definition at line 231 of file util-lua.c.
References lua_ext_key_file.
set a flow pointer in the lua state
f | flow pointer |
Definition at line 176 of file util-lua.c.
References lua_ext_key_flow, and lua_ext_key_flow_lock_hint.
Definition at line 126 of file util-lua.c.
References lua_ext_key_p.
void LuaStateSetPacketAlert | ( | lua_State * | luastate, |
PacketAlert * | pa | ||
) |
Definition at line 199 of file util-lua.c.
References lua_ext_key_pa.
Definition at line 215 of file util-lua.c.
References lua_ext_key_s.
void LuaStateSetStreamingBuffer | ( | lua_State * | luastate, |
LuaStreamingBuffer * | b | ||
) |
Definition at line 262 of file util-lua.c.
References lua_ext_key_streaming_buffer.
void LuaStateSetThreadVars | ( | lua_State * | luastate, |
ThreadVars * | tv | ||
) |
Definition at line 110 of file util-lua.c.
References lua_ext_key_tv, and tv.
void LuaStateSetTX | ( | lua_State * | luastate, |
void * | tx, | ||
const uint64_t | tx_id | ||
) |
Definition at line 150 of file util-lua.c.
References lua_ext_key_tx, and lua_ext_key_tx_id.