netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Hann-Huei Chiou" <koala@ascenvision.com>
To: netfilter-devel@vger.kernel.org
Subject: [PATCH] Couldn't load/find match `u32'
Date: Fri, 28 Sep 2007 16:02:01 +0800	[thread overview]
Message-ID: <20070928075459.M24408@ascenvision.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 819 bytes --]

Sorry if op, since I can't find list archives and can't connect
to bugzilla.

iptables (up to 0927 snapshot) keeps complaining of "Couldn't
load (or find, if NO_SHARED_LIBS=1) match `u32'. After comparing
with other libxt_*.c, I found that there's no member ".family"
in the "u32_reg" structure, while ".family = AF_INET6" exists
in "u32_reg6"

Patch is enclosed and attached.

Index: extensions/libxt_u32.c
===================================================================
--- extensions/libxt_u32.c	(revision 7050)
+++ extensions/libxt_u32.c	(working copy)
@@ -274,6 +274,7 @@
 
 static struct xtables_match u32_reg = {
 	.name          = "u32",
+	.family        = AF_INET,
 	.version       = IPTABLES_VERSION,
 	.size          = XT_ALIGN(sizeof(struct xt_u32)),
 	.userspacesize = XT_ALIGN(sizeof(struct xt_u32)),

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: u32.patch --]
[-- Type: text/x-patch; name="u32.patch", Size: 441 bytes --]

Index: extensions/libxt_u32.c
===================================================================
--- extensions/libxt_u32.c	(revision 7050)
+++ extensions/libxt_u32.c	(working copy)
@@ -274,6 +274,7 @@
 
 static struct xtables_match u32_reg = {
 	.name          = "u32",
+	.family        = AF_INET,
 	.version       = IPTABLES_VERSION,
 	.size          = XT_ALIGN(sizeof(struct xt_u32)),
 	.userspacesize = XT_ALIGN(sizeof(struct xt_u32)),

             reply	other threads:[~2007-09-28  9:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-28  8:02 Hann-Huei Chiou [this message]
2007-09-28 15:25 ` [PATCH] Couldn't load/find match `u32' 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=20070928075459.M24408@ascenvision.com \
    --to=koala@ascenvision.com \
    --cc=netfilter-devel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).