suricata
util-lua-dnp3.c File Reference
#include "suricata-common.h"
#include "app-layer-dnp3.h"
#include "app-layer-dnp3-objects.h"
#include "lua.h"
#include "lualib.h"
#include "lauxlib.h"
#include "util-lua.h"
#include "util-lua-sandbox.h"
#include "util-lua-common.h"
#include "util-lua-dnp3.h"
#include "util-lua-dnp3-objects.h"
Include dependency graph for util-lua-dnp3.c:

Go to the source code of this file.

Data Structures

struct  LuaDnp3Points_
 

Macros

#define LUA_PUSHT_INT(l, k, v)
 Helper macro to push key and integer value onto a table. More...
 
#define DNP3_MAX_EAGER_POINTS   32
 
#define DNP3_POINTS_MT   "sc.dnp3.points"
 

Typedefs

typedef struct LuaDnp3Points_ LuaDnp3Points
 

Functions

int SCLuaLoadDnp3Lib (lua_State *L)
 

Macro Definition Documentation

◆ DNP3_MAX_EAGER_POINTS

#define DNP3_MAX_EAGER_POINTS   32

Definition at line 72 of file util-lua-dnp3.c.

◆ DNP3_POINTS_MT

#define DNP3_POINTS_MT   "sc.dnp3.points"

Definition at line 73 of file util-lua-dnp3.c.

◆ LUA_PUSHT_INT

#define LUA_PUSHT_INT (   l,
  k,
  v 
)
Value:
do { \
lua_pushliteral(luastate, k); \
lua_pushinteger(luastate, v); \
lua_settable(luastate, -3); \
} while (0);

Helper macro to push key and integer value onto a table.

Definition at line 37 of file util-lua-dnp3.c.

Typedef Documentation

◆ LuaDnp3Points

typedef struct LuaDnp3Points_ LuaDnp3Points

Function Documentation

◆ SCLuaLoadDnp3Lib()

int SCLuaLoadDnp3Lib ( lua_State *  L)

Definition at line 516 of file util-lua-dnp3.c.