iptables static build bug (fwd)
---------- Forwarded message ----------
Date: Mon, 18 Dec 2006 11:29:10 +0200
From: Tux P <[email protected]>
To: [email protected]
Cc: [email protected], [email protected]
Subject: iptables static build bug
Hi *,
I found subj. Static iptables tries to load kernel modules (modprobe fails and shows pesky message about every iptables run) regardless their static present in the kernel.
and created a simple patch to fix this.
Please look (also attached):
iptables.c 2006-12-18 00:50:51.000000000 -0800 renamed from iptables.c.orig 2006-12-04 03:15:20.000000000 -0800 +2 -2
@@ -774,7 +774,7 @@ } #else if (ptr && !ptr->loaded) { - if (tryload != DONT_LOAD) + if (tryload != DONT_LOAD && tryload != DURING_LOAD) ptr->loaded = 1; else ptr = NULL;
@@ -1093,7 +1093,7 @@ } #else if (ptr && !ptr->loaded) { - if (tryload != DONT_LOAD) + if (tryload != DONT_LOAD && tryload != DURING_LOAD) ptr->loaded = 1; else ptr = NULL;
Thanks
Nick
iptables.c renamed from iptables.c.orig +2 -2
@@ -774,7 +774,7 @@ }#else if (ptr && !ptr->loaded) { -if (tryload !=DONT_LOAD ) +if (tryload !=DONT_LOAD && tryload !=DURING_LOAD ) ptr->loaded =1 ;else ptr =NULL ;
@@ -1093,7 +1093,7 @@ }#else if (ptr && !ptr->loaded) { -if (tryload !=DONT_LOAD ) +if (tryload !=DONT_LOAD && tryload !=DURING_LOAD ) ptr->loaded =1 ;else ptr =NULL ;