From: Hann-Huei Chiou Date: Fri, 28 Sep 2007 15:27:43 +0000 (+0000) Subject: Couldn't load/find match `u32' X-Git-Tag: v1.4.0-rc1~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92dc7096c8076f2228c1c6cadb81f7892384033b;p=thirdparty%2Fiptables.git Couldn't load/find match `u32' 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" Hann-Huei Chiou --- diff --git a/extensions/libxt_u32.c b/extensions/libxt_u32.c index b1c6bcda..71b555e9 100644 --- a/extensions/libxt_u32.c +++ b/extensions/libxt_u32.c @@ -274,6 +274,7 @@ static void u32_save(const void *ip, const struct xt_entry_match *match) 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)),