Re: [[email protected]: iptables static build bug]
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