summaryrefslogtreecommitdiffstats
path: root/src/lua/lua_ip.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/lua_ip.c')
-rw-r--r--src/lua/lua_ip.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lua/lua_ip.c b/src/lua/lua_ip.c
index b0f17e5c3..dc6271e7e 100644
--- a/src/lua/lua_ip.c
+++ b/src/lua/lua_ip.c
@@ -219,6 +219,7 @@ lua_check_ip (lua_State * L, gint pos)
static gint
lua_ip_to_table (lua_State *L)
{
+ LUA_TRACE_POINT;
struct rspamd_lua_ip *ip = lua_check_ip (L, 1);
guint max, i;
guint8 *ptr;
@@ -242,6 +243,7 @@ lua_ip_to_table (lua_State *L)
static gint
lua_ip_str_octets (lua_State *L)
{
+ LUA_TRACE_POINT;
struct rspamd_lua_ip *ip = lua_check_ip (L, 1);
guint max, i;
guint8 *ptr;
@@ -282,6 +284,7 @@ lua_ip_str_octets (lua_State *L)
static gint
lua_ip_inversed_str_octets (lua_State *L)
{
+ LUA_TRACE_POINT;
struct rspamd_lua_ip *ip = lua_check_ip (L, 1);
guint max, i;
guint8 *ptr;
@@ -323,6 +326,7 @@ lua_ip_inversed_str_octets (lua_State *L)
static gint
lua_ip_to_string (lua_State *L)
{
+ LUA_TRACE_POINT;
struct rspamd_lua_ip *ip = lua_check_ip (L, 1);
if (ip != NULL && ip->addr) {
@@ -343,6 +347,7 @@ lua_ip_to_string (lua_State *L)
static gint
lua_ip_get_port (lua_State *L)
{
+ LUA_TRACE_POINT;
struct rspamd_lua_ip *ip = lua_check_ip (L, 1);
if (ip != NULL && ip->addr) {
@@ -358,6 +363,7 @@ lua_ip_get_port (lua_State *L)
static gint
lua_ip_from_string (lua_State *L)
{
+ LUA_TRACE_POINT;
struct rspamd_lua_ip *ip;
const gchar *ip_str;
@@ -380,6 +386,7 @@ lua_ip_from_string (lua_State *L)
static gint
lua_ip_to_number (lua_State *L)
{
+ LUA_TRACE_POINT;
struct rspamd_lua_ip *ip = lua_check_ip (L, 1);
guint32 c;
guint max, i;
@@ -406,6 +413,7 @@ lua_ip_to_number (lua_State *L)
static gint
lua_ip_destroy (lua_State *L)
{
+ LUA_TRACE_POINT;
struct rspamd_lua_ip *ip = lua_check_ip (L, 1);
if (ip) {
@@ -421,6 +429,7 @@ lua_ip_destroy (lua_State *L)
static gint
lua_ip_get_version (lua_State *L)
{
+ LUA_TRACE_POINT;
struct rspamd_lua_ip *ip = lua_check_ip (L, 1);
if (ip && ip->addr) {
@@ -437,6 +446,7 @@ lua_ip_get_version (lua_State *L)
static gint
lua_ip_is_valid (lua_State *L)
{
+ LUA_TRACE_POINT;
struct rspamd_lua_ip *ip = lua_check_ip (L, 1);
if (ip) {
@@ -452,6 +462,7 @@ lua_ip_is_valid (lua_State *L)
static gint
lua_ip_apply_mask (lua_State *L)
{
+ LUA_TRACE_POINT;
struct rspamd_lua_ip *ip = lua_check_ip (L, 1), *nip;
gint mask;
@@ -470,6 +481,7 @@ lua_ip_apply_mask (lua_State *L)
static gint
lua_ip_equal (lua_State *L)
{
+ LUA_TRACE_POINT;
struct rspamd_lua_ip *ip1 = lua_check_ip (L, 1),
*ip2 = lua_check_ip (L, 2);
gboolean res = FALSE;
@@ -486,6 +498,7 @@ lua_ip_equal (lua_State *L)
static gint
lua_ip_copy (lua_State *L)
{
+ LUA_TRACE_POINT;
struct rspamd_lua_ip *ip = lua_check_ip (L, 1);
if (ip) {