]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
STEAL: enable for multiprotocol
authorJan Engelhardt <jengelh@medozas.de>
Thu, 14 May 2009 19:34:47 +0000 (21:34 +0200)
committerJan Engelhardt <jengelh@medozas.de>
Thu, 14 May 2009 19:38:08 +0000 (21:38 +0200)
extensions/libxt_IPMARK.c
extensions/libxt_STEAL.c

index 626f182597a3ffbc60edbd2d1159a806016ceef1..c08457282a6084e75ad2846e78c0222cc6a59864 100644 (file)
@@ -143,26 +143,10 @@ ipmark_tg_save(const void *entry, const struct xt_entry_target *target)
                printf("--or-mask 0x%x ", (unsigned int)info->ormask);
 }
 
-static struct xtables_target ipmark_tg4_reg = {
+static struct xtables_target ipmark_tg_reg = {
        .version       = XTABLES_VERSION,
        .name          = "IPMARK",
-       .family        = PF_INET,
-       .revision      = 0,
-       .size          = XT_ALIGN(sizeof(struct xt_ipmark_tginfo)),
-       .userspacesize = XT_ALIGN(sizeof(struct xt_ipmark_tginfo)),
-       .help          = ipmark_tg_help,
-       .init          = ipmark_tg_init,
-       .parse         = ipmark_tg_parse,
-       .final_check   = ipmark_tg_check,
-       .print         = ipmark_tg_print,
-       .save          = ipmark_tg_save,
-       .extra_opts    = ipmark_tg_opts,
-};
-
-static struct xtables_target ipmark_tg6_reg = {
-       .version       = XTABLES_VERSION,
-       .name          = "IPMARK",
-       .family        = PF_INET6,
+       .family        = PF_UNSPEC,
        .revision      = 0,
        .size          = XT_ALIGN(sizeof(struct xt_ipmark_tginfo)),
        .userspacesize = XT_ALIGN(sizeof(struct xt_ipmark_tginfo)),
@@ -177,6 +161,5 @@ static struct xtables_target ipmark_tg6_reg = {
 
 static __attribute__((constructor)) void ipmark_tg_ldr(void)
 {
-       xtables_register_target(&ipmark_tg4_reg);
-       xtables_register_target(&ipmark_tg6_reg);
+       xtables_register_target(&ipmark_tg_reg);
 }
index 2b399ed39e508a0fffa9ae84fe5bc0233a41d2ab..14772abf9cd09bbfdead6940e2cbad2c0e03a661 100644 (file)
@@ -19,7 +19,7 @@ static void steal_tg_check(unsigned int flags)
 static struct xtables_target steal_tg_reg = {
        .version       = XTABLES_VERSION,
        .name          = "STEAL",
-       .family        = AF_INET,
+       .family        = AF_UNSPEC,
        .size          = XT_ALIGN(0),
        .userspacesize = XT_ALIGN(0),
        .help          = steal_tg_help,