suricata
detect-lua-extensions.c File Reference
#include "suricata-common.h"
#include "conf.h"
#include "threads.h"
#include "decode.h"
#include "detect.h"
#include "detect-parse.h"
#include "detect-flowvar.h"
#include "detect-engine.h"
#include "detect-engine-mpm.h"
#include "detect-engine-state.h"
#include "flow.h"
#include "flow-var.h"
#include "flow-util.h"
#include "util-debug.h"
#include "util-spm-bm.h"
#include "util-print.h"
#include "util-unittest.h"
#include "util-unittest-helper.h"
#include "app-layer.h"
#include "stream-tcp.h"
#include "detect-lua.h"
#include "queue.h"
#include "util-cpu.h"
#include "app-layer-parser.h"
#include "util-lua.h"
#include "util-lua-common.h"
#include "util-lua-http.h"
#include "util-lua-dns.h"
#include "util-lua-ja3.h"
#include "util-lua-tls.h"
#include "util-lua-ssh.h"
#include "util-lua-hassh.h"
#include "util-lua-smtp.h"
#include "util-lua-dnp3.h"
#include "detect-lua-extensions.h"
Include dependency graph for detect-lua-extensions.c:

Go to the source code of this file.

Macros

#define LUA_ERROR(msg)
 

Functions

void LuaExtensionsMatchSetup (lua_State *lua_state, DetectLuaData *ld, DetectEngineThreadCtx *det_ctx, Flow *f, Packet *p, const Signature *s, uint8_t flags)
 
int LuaRegisterExtensions (lua_State *lua_state)
 Register Suricata Lua functions. More...
 

Detailed Description

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

Functions to expose to the lua scripts.

Definition in file detect-lua-extensions.c.

Macro Definition Documentation

◆ LUA_ERROR

#define LUA_ERROR (   msg)
Value:
LuaCallbackError(luastate, (msg)); \
return 2

Definition at line 80 of file detect-lua-extensions.c.

Function Documentation

◆ LuaExtensionsMatchSetup()

void LuaExtensionsMatchSetup ( lua_State lua_state,
DetectLuaData ld,
DetectEngineThreadCtx det_ctx,
Flow f,
Packet p,
const Signature s,
uint8_t  flags 
)

Definition at line 507 of file detect-lua-extensions.c.

References SCLogDebug.

Referenced by DetectLuaMatchBuffer().

Here is the caller graph for this function:

◆ LuaRegisterExtensions()

int LuaRegisterExtensions ( lua_State lua_state)

Register Suricata Lua functions.

Definition at line 540 of file detect-lua-extensions.c.

LuaCallbackError
int LuaCallbackError(lua_State *luastate, const char *msg)
Definition: util-lua-common.c:59
msg
const char * msg
Definition: app-layer-htp.c:564