]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Couldn't load/find match `u32'
authorHann-Huei Chiou <koala@ascenvision.com>
Fri, 28 Sep 2007 15:27:43 +0000 (15:27 +0000)
committerPatrick McHardy <kaber@trash.net>
Fri, 28 Sep 2007 15:27:43 +0000 (15:27 +0000)
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 <koala@ascenvision.com>

extensions/libxt_u32.c

index b1c6bcdacbdd38b05a0a09c01cdbe606e81a76a5..71b555e9a97dee2158ac41740cbea614219e63a6 100644 (file)
@@ -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)),