STEAL: enable for multiprotocol

This commit is contained in:
Jan Engelhardt
2009-05-14 21:34:47 +02:00
parent fe7a66f3cb
commit 471e747fc0
2 changed files with 4 additions and 21 deletions

View 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); 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, .version = XTABLES_VERSION,
.name = "IPMARK", .name = "IPMARK",
.family = PF_INET, .family = PF_UNSPEC,
.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,
.revision = 0, .revision = 0,
.size = XT_ALIGN(sizeof(struct xt_ipmark_tginfo)), .size = XT_ALIGN(sizeof(struct xt_ipmark_tginfo)),
.userspacesize = 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) static __attribute__((constructor)) void ipmark_tg_ldr(void)
{ {
xtables_register_target(&ipmark_tg4_reg); xtables_register_target(&ipmark_tg_reg);
xtables_register_target(&ipmark_tg6_reg);
} }

View File

@@ -19,7 +19,7 @@ static void steal_tg_check(unsigned int flags)
static struct xtables_target steal_tg_reg = { static struct xtables_target steal_tg_reg = {
.version = XTABLES_VERSION, .version = XTABLES_VERSION,
.name = "STEAL", .name = "STEAL",
.family = AF_INET, .family = AF_UNSPEC,
.size = XT_ALIGN(0), .size = XT_ALIGN(0),
.userspacesize = XT_ALIGN(0), .userspacesize = XT_ALIGN(0),
.help = steal_tg_help, .help = steal_tg_help,