[[email protected]: iptables static build bug]
Hi all,
Please verify this bug report / patch, thanks!
Signature · 5 lines
- Harald Welte <[email protected]> http://netfilter.org/ ============================================================================ "Fragmentation is like classful addressing -- an interesting early architectural error that shows how much experimentation was going on while IP was being designed." -- Paul Vixie
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 +0 -0
@@ -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 ;