From: Joseph Jezak <josejx@gentoo.org>
To: netfilter-devel@lists.netfilter.org
Subject: iptables: "getsockopt failed strangely"
Date: Mon, 25 Jun 2007 11:53:40 -0400 [thread overview]
Message-ID: <467FE504.6040606@gentoo.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 561 bytes --]
Hi,
On PowerPC, with a binary compiled statically, we're seeing the
error message in the topic when simply running the iptables binary.
For more information, the Gentoo bug is available here:
http://bugs.gentoo.org/show_bug.cgi?id=136813
Basically, the issue arises from a missing check for the result from
the module request located in
/usr/src/linux/net/ipv4/netfilter/iptables.c
A patch to add a check for -ENOENT and printing out the missing
module name then return -EPROTONOSUPPORT instead of -ENOENT is
attached and "fixes" the bug for me.
-Joe
[-- Attachment #2: ip_tables.patch --]
[-- Type: text/plain, Size: 350 bytes --]
--- ip_tables.c 2007-04-06 14:39:08.000000000 -0400
+++ /home/jjezak/ip_tables.c 2007-04-28 02:22:57.000000000 -0400
@@ -2004,6 +2004,11 @@
rev.revision,
target, &ret),
"ipt_%s", rev.name);
+ if (ret == -ENOENT) {
+ printk("iptables: Unable to load ipt_%s\n", rev.name);
+ return -EPROTONOSUPPORT;
+ }
+
break;
}
next reply other threads:[~2007-06-25 15:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-25 15:53 Joseph Jezak [this message]
2007-06-26 9:27 ` iptables: "getsockopt failed strangely" Patrick McHardy
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=467FE504.6040606@gentoo.org \
--to=josejx@gentoo.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.