From 1c571ff8ea0f4d96b7bc8f3389618ce64bcbe3d1 Mon Sep 17 00:00:00 2001 From: MissValeska Date: Sat, 29 Mar 2014 14:21:46 -0700 Subject: [PATCH] I added more debugging print lines, I am pushing this because of a weird kernel panic on my system. I will test this on other systems. --- src/mark.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mark.c b/src/mark.c index 82189bf..4b86bda 100644 --- a/src/mark.c +++ b/src/mark.c @@ -55,6 +55,7 @@ static int dumped; int table_init(const char *table, iptc_handle_t *t) { *t=iptc_init(table); + error("In table_int, t: %s and errno %d", table,errno); if (!(*t)) { error("In table_init, table %s: -> %s", table,iptc_strerror(errno)); err_ret(ERR_NETFIL,-1); @@ -90,6 +91,7 @@ int append_rule(const char *rule,iptc_handle_t *t,const char *chain) { int res; res=iptc_append_entry(chain,(struct ipt_entry*)rule,t); + error("res is: %d, chain: %s, rule: %s, t: %s, Errno is: %d",res,chain,rule,t,errno); if (!res) { error("In append_rule: %s.",iptc_strerror(errno)); err_ret(ERR_NETRUL,-1);