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-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.

Macros

#define LUA_PUSHT_INT(l, k, v)
 Helper macro to push key and integer value onto a table. More...
 

Functions

int LuaRegisterDNP3Functions (lua_State *luastate)
 

Macro Definition Documentation

◆ LUA_PUSHT_INT

#define LUA_PUSHT_INT (   l,
  k,
 
)
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 36 of file util-lua-dnp3.c.

Function Documentation

◆ LuaRegisterDNP3Functions()

int LuaRegisterDNP3Functions ( lua_State luastate)

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