netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Couldn't load/find match `u32'
@ 2007-09-28  8:02 Hann-Huei Chiou
  2007-09-28 15:25 ` Patrick McHardy
  0 siblings, 1 reply; 2+ messages in thread
From: Hann-Huei Chiou @ 2007-09-28  8:02 UTC (permalink / raw)
  To: netfilter-devel

[-- 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)),

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Couldn't load/find match `u32'
  2007-09-28  8:02 [PATCH] Couldn't load/find match `u32' Hann-Huei Chiou
@ 2007-09-28 15:25 ` Patrick McHardy
  0 siblings, 0 replies; 2+ messages in thread
From: Patrick McHardy @ 2007-09-28 15:25 UTC (permalink / raw)
  To: Hann-Huei Chiou; +Cc: netfilter-devel

Hann-Huei Chiou wrote:
> 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"


Applied, thanks.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-09-28 15:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-28  8:02 [PATCH] Couldn't load/find match `u32' Hann-Huei Chiou
2007-09-28 15:25 ` Patrick McHardy

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).