Skip to contentSkip to conversation

Re: [[email protected]: iptables static build bug]

[email protected]: iptables static build bug Patrick McHardy 1 participant 1 message Jan 10, 2007 1 message not in the archive netfilter

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 20061218094036.GI12198@(none)

#1 lore raw
Quoted 3 lines · Harald Welte

Hi all,

Please verify this bug report / patch, thanks!

The tryload stuff has always been a mystery for me, so someone else should probably have a look at this ..

Quoted 46 lines

------------------------------------------------------------------------

Subject:
iptables static build bug
From:
"Tux P" <[email protected]>
Date:
Mon, 18 Dec 2006 11:29:10 +0200
To:
[email protected]

[...]
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