mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-08 13:44:56 +02:00
condition: use PF_UNSPEC in vtable
This commit is contained in:
@@ -68,10 +68,10 @@ static void condition_save(const void *ip, const struct xt_entry_match *match)
|
|||||||
printf("--condition %s\"%s\" ", (info->invert) ? "! " : "", info->name);
|
printf("--condition %s\"%s\" ", (info->invert) ? "! " : "", info->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct xtables_match condition_mt4_reg = {
|
static struct xtables_match condition_mt_reg = {
|
||||||
.name = "condition",
|
.name = "condition",
|
||||||
.revision = 0,
|
.revision = 0,
|
||||||
.family = PF_INET,
|
.family = PF_UNSPEC,
|
||||||
.version = XTABLES_VERSION,
|
.version = XTABLES_VERSION,
|
||||||
.size = XT_ALIGN(sizeof(struct xt_condition_mtinfo)),
|
.size = XT_ALIGN(sizeof(struct xt_condition_mtinfo)),
|
||||||
.userspacesize = XT_ALIGN(sizeof(struct xt_condition_mtinfo)),
|
.userspacesize = XT_ALIGN(sizeof(struct xt_condition_mtinfo)),
|
||||||
@@ -83,23 +83,7 @@ static struct xtables_match condition_mt4_reg = {
|
|||||||
.extra_opts = condition_opts,
|
.extra_opts = condition_opts,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct xtables_match condition_mt6_reg = {
|
|
||||||
.name = "condition",
|
|
||||||
.revision = 0,
|
|
||||||
.family = PF_INET6,
|
|
||||||
.version = XTABLES_VERSION,
|
|
||||||
.size = XT_ALIGN(sizeof(struct xt_condition_mtinfo)),
|
|
||||||
.userspacesize = offsetof(struct xt_condition_mtinfo, condvar),
|
|
||||||
.help = condition_help,
|
|
||||||
.parse = condition_parse,
|
|
||||||
.final_check = condition_check,
|
|
||||||
.print = condition_print,
|
|
||||||
.save = condition_save,
|
|
||||||
.extra_opts = condition_opts,
|
|
||||||
};
|
|
||||||
|
|
||||||
static void _init(void)
|
static void _init(void)
|
||||||
{
|
{
|
||||||
xtables_register_match(&condition_mt4_reg);
|
xtables_register_match(&condition_mt_reg);
|
||||||
xtables_register_match(&condition_mt6_reg);
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user