|
@@ -55,6 +55,7 @@ static int dumped;
|
55
|
55
|
int table_init(const char *table, iptc_handle_t *t)
|
56
|
56
|
{
|
57
|
57
|
*t=iptc_init(table);
|
|
58
|
+ error("In table_int, t: %s and errno %d", table,errno);
|
58
|
59
|
if (!(*t)) {
|
59
|
60
|
error("In table_init, table %s: -> %s", table,iptc_strerror(errno));
|
60
|
61
|
err_ret(ERR_NETFIL,-1);
|
|
@@ -90,6 +91,7 @@ int append_rule(const char *rule,iptc_handle_t *t,const char *chain)
|
90
|
91
|
{
|
91
|
92
|
int res;
|
92
|
93
|
res=iptc_append_entry(chain,(struct ipt_entry*)rule,t);
|
|
94
|
+ error("res is: %d, chain: %s, rule: %s, t: %s, Errno is: %d",res,chain,rule,t,errno);
|
93
|
95
|
if (!res) {
|
94
|
96
|
error("In append_rule: %s.",iptc_strerror(errno));
|
95
|
97
|
err_ret(ERR_NETRUL,-1);
|