Skip to contentSkip to conversation

Couldn't load/find match `u32'

PATCH Applied Hann-Huei Chiou 2 participants 2 messages Sep 28, 2007 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Couldn't load/find match `u32'

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.

libxt_u32.c +1 -0
Index: extensions/libxt_u32.c
===================================================================
@@ -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)),
libxt_u32.c +1 -0
Index: extensions/libxt_u32.c
===================================================================
@@ -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)),
#1 lore raw
Quoted 8 lines · Hann-Huei Chiou

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.