]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
TEE: limit iptables module to NFPROTO_IPV4
authorJan Engelhardt <jengelh@medozas.de>
Sat, 10 Jan 2009 08:57:44 +0000 (09:57 +0100)
committerJan Engelhardt <jengelh@medozas.de>
Sat, 10 Jan 2009 08:57:44 +0000 (09:57 +0100)
The code here is only usable with IPv4.

extensions/libxt_TEE.c

index 18638b8c8eee7285c428f38678b4347c95599996..f2d788e87c9c66014f87e55530cd32f57876a277 100644 (file)
@@ -98,6 +98,8 @@ static void tee_tg_save(const void *ip, const struct xt_entry_target *target)
 static struct xtables_target tee_tg_reg = {
        .name          = "TEE",
        .version       = XTABLES_VERSION,
+       .revision      = 0,
+       .family        = PF_INET,
        .size          = XT_ALIGN(sizeof(struct xt_tee_tginfo)),
        .userspacesize = XT_ALIGN(sizeof(struct xt_tee_tginfo)),
        .help          = tee_tg_help,