From: Patrick McHardy <kaber@trash.net>
To: Harald Welte <laforge@netfilter.org>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: [gentuu@gmail.com: iptables static build bug]
Date: Wed, 10 Jan 2007 07:02:32 +0100 [thread overview]
Message-ID: <45A48178.30903@trash.net> (raw)
In-Reply-To: <20061218094036.GI12198@(none)>
Harald Welte wrote:
> 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 ..
> ------------------------------------------------------------------------
>
> Subject:
> iptables static build bug
> From:
> "Tux P" <gentuu@gmail.com>
> Date:
> Mon, 18 Dec 2006 11:29:10 +0200
> To:
> marc@mbsi.ca
>
> [...]
> 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-1.3.7/iptables.c.orig 2006-12-04 03:15:20.000000000 -0800
> +++ iptables-1.3.7/iptables.c 2006-12-18 00:50:51.000000000 -0800
> @@ -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
>
next parent reply other threads:[~2007-01-10 6:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20061218094036.GI12198@(none)>
2007-01-10 6:02 ` Patrick McHardy [this message]
2006-12-18 9:40 [gentuu@gmail.com: iptables static build bug] Harald Welte
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45A48178.30903@trash.net \
--to=kaber@trash.net \
--cc=laforge@netfilter.org \
--cc=netfilter-devel@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.