mirror of
https://github.com/ChronosX88/netsukuku.git
synced 2024-11-26 12:12:18 +00:00
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.
This commit is contained in:
parent
05309ec9c3
commit
1c571ff8ea
@ -55,6 +55,7 @@ static int dumped;
|
|||||||
int table_init(const char *table, iptc_handle_t *t)
|
int table_init(const char *table, iptc_handle_t *t)
|
||||||
{
|
{
|
||||||
*t=iptc_init(table);
|
*t=iptc_init(table);
|
||||||
|
error("In table_int, t: %s and errno %d", table,errno);
|
||||||
if (!(*t)) {
|
if (!(*t)) {
|
||||||
error("In table_init, table %s: -> %s", table,iptc_strerror(errno));
|
error("In table_init, table %s: -> %s", table,iptc_strerror(errno));
|
||||||
err_ret(ERR_NETFIL,-1);
|
err_ret(ERR_NETFIL,-1);
|
||||||
@ -90,6 +91,7 @@ int append_rule(const char *rule,iptc_handle_t *t,const char *chain)
|
|||||||
{
|
{
|
||||||
int res;
|
int res;
|
||||||
res=iptc_append_entry(chain,(struct ipt_entry*)rule,t);
|
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) {
|
if (!res) {
|
||||||
error("In append_rule: %s.",iptc_strerror(errno));
|
error("In append_rule: %s.",iptc_strerror(errno));
|
||||||
err_ret(ERR_NETRUL,-1);
|
err_ret(ERR_NETRUL,-1);
|
||||||
|
Loading…
Reference in New Issue
Block a user