return 1;
}
-/* Final check; nothing. */
-static void final_check(unsigned int flags)
-{
-}
-
/* Prints out the targinfo. */
static void
print(const void *ip,
.help = &help,
.init = &init,
.parse = &parse,
- .final_check = &final_check,
.print = &print,
.save = &save,
.extra_opts = opts
return 0;
}
-/* Final check; nothing. */
-static void final_check(unsigned int flags)
-{
-}
-
/* Prints out ipt_reject_info. */
static void
print(const void *ip,
.help = &help,
.init = &init,
.parse = &parse,
- .final_check = &final_check,
.print = &print,
.save = &save,
.extra_opts = opts,
return 1;
}
-/* Final check; we don't care. */
-static void
-final_check(unsigned int flags)
-{
-}
-
static void
print_spis(const char *name, u_int32_t min, u_int32_t max,
int invert)
.help = &help,
.init = &init,
.parse = &parse,
- .final_check = &final_check,
.print = &print,
.save = &save,
.extra_opts = opts
return 1;
}
-/* Final check; we don't care. */
-static void
-final_check(unsigned int flags)
-{
-}
-
static void
print_options(int optsnr, u_int16_t *optsp)
{
.help = &help,
.init = &init,
.parse = &parse,
- .final_check = &final_check,
.print = &print,
.save = &save,
.extra_opts = opts
return 0;
}
-/* Final check */
-static void final_check(unsigned int flags)
-{
-}
-
/* Prints out the matchinfo. */
static void
print(const void *ip,
.userspacesize = IP6T_ALIGN(sizeof(int)),
.help = &help,
.parse = &parse,
- .final_check = &final_check,
.print = &print,
.save = &save,
};
return 1;
}
-/* Final check; we don't care. */
-static void
-final_check(unsigned int flags)
-{
-}
-
static void
print_ids(const char *name, u_int32_t min, u_int32_t max,
int invert)
.help = &help,
.init = &init,
.parse = &parse,
- .final_check = &final_check,
.print = &print,
.save = &save,
.extra_opts = opts
return 1;
}
-/* Final check; we don't care. */
-static void
-final_check(unsigned int flags)
-{
-}
-
static void
print_options(int optsnr, u_int16_t *optsp)
{
.help = &help,
.init = &init,
.parse = &parse,
- .final_check = &final_check,
.print = &print,
.save = &save,
.extra_opts = opts,
return 1;
}
-/* Final check; we don't care. */
-static void final_check(unsigned int flags)
-{
-}
-
static const char *type_to_name(u_int8_t type)
{
unsigned int i;
.help = &help,
.init = &init,
.parse = &parse,
- .final_check = &final_check,
.print = &print,
.save = &save,
.extra_opts = opts,
return 1;
}
-/* Final check; we don't care. */
-static void
-final_check(unsigned int flags)
-{
-}
-
static void
print_nums(const char *name, u_int32_t min, u_int32_t max,
int invert)
.help = &help,
.init = &init,
.parse = &parse,
- .final_check = &final_check,
.print = &print,
.save = &save,
.extra_opts = opts,
return 1;
}
-/* Final check; nothing. */
-static void final_check(unsigned int flags)
-{
-}
-
/* Prints out the targinfo. */
static void
print(const void *ip,
.help = &help,
.init = &init,
.parse = &parse,
- .final_check = &final_check,
.print = &print,
.save = &save,
.extra_opts = opts
}
}
-/* Final check; don't care. */
-static void final_check(unsigned int flags)
-{
-}
-
/* Prints out the targinfo. */
static void
print(const void *ip,
.help = &help,
.init = &init,
.parse = &parse,
- .final_check = &final_check,
.print = &print,
.save = &save,
.extra_opts = opts
return 0;
}
-static void
-final_check(unsigned int flags)
-{
-}
-
static struct iptables_target mirror = {
.name = "MIRROR",
.version = IPTABLES_VERSION,
.userspacesize = IPT_ALIGN(0),
.help = &help,
.parse = &parse,
- .final_check = &final_check,
.print = NULL,
.save = NULL,
};
}
}
-/* Final check; don't care. */
-static void final_check(unsigned int flags)
-{
-}
-
/* Prints out the targinfo. */
static void
print(const void *ip,
.help = &help,
.init = &init,
.parse = &parse,
- .final_check = &final_check,
.print = &print,
.save = &save,
.extra_opts = opts
return 0;
}
-/* Final check; nothing. */
-static void final_check(unsigned int flags)
-{
-}
-
/* Prints out ipt_reject_info. */
static void
print(const void *ip,
.help = &help,
.init = &init,
.parse = &parse,
- .final_check = &final_check,
.print = &print,
.save = &save,
.extra_opts = opts
return 1;
}
-/* Final check; nothing. */
-static void final_check(unsigned int flags)
-{
-}
-
/* Saves the union ipt_targinfo in parsable form to stdout. */
static void save(const void *ip,
const struct xt_entry_target *target)
.help = &help,
.init = &init,
.parse = &parse,
- .final_check = &final_check,
.print = &print,
.save = &save,
.extra_opts = opts
return 1;
}
-/* Final check; we don't care. */
-static void
-final_check(unsigned int flags)
-{
-}
-
static void
print_spis(const char *name, u_int32_t min, u_int32_t max,
int invert)
.help = &help,
.init = &init,
.parse = &parse,
- .final_check = &final_check,
.print = &print,
.save = &save,
.extra_opts = opts
}
}
-/* Final check; we don't care. We can pass 0xFF to match any type */
-static void final_check(unsigned int flags)
-{
-}
-
static struct iptables_match icmp = {
.name = "icmp",
.version = IPTABLES_VERSION,
.help = &help,
.init = &init,
.parse = &parse,
- .final_check = &final_check,
.print = &print,
.save = &save,
.extra_opts = opts
return 0;
}
-/* Final check; must have specified --mac. */
-static void final_check(unsigned int flags)
-{
-}
-
static
struct iptables_match unclean = {
.name = "unclean",
.userspacesize = IPT_ALIGN(0),
.help = &help,
.parse = &parse,
- .final_check = &final_check,
.print = NULL,
.save = NULL,
};
return 1;
}
-static void final_check(unsigned int flags)
-{
- return;
-}
-
static void nflog_print(const struct xt_nflog_info *info, char *prefix)
{
if (info->prefix[0] != '\0')
.help = help,
.init = init,
.parse = parse,
- .final_check = final_check,
.print = print,
.save = save,
.extra_opts = opts,
.help = help,
.init = init,
.parse = parse,
- .final_check = final_check,
.print = print,
.save = save,
.extra_opts = opts,
return 1;
}
-static void
-final_check(unsigned int flags)
-{
-}
-
/* Prints out the targinfo. */
static void
print(const void *ip,
.userspacesize = XT_ALIGN(sizeof(struct xt_NFQ_info)),
.help = &help,
.parse = &parse,
- .final_check = &final_check,
.print = &print,
.save = &save,
.extra_opts = opts
.userspacesize = XT_ALIGN(sizeof(struct xt_NFQ_info)),
.help = &help,
.parse = &parse,
- .final_check = &final_check,
.print = &print,
.save = &save,
.extra_opts = opts
return 0;
}
-static void
-final_check(unsigned int flags)
-{
-}
-
static
struct xtables_target notrack =
{
.userspacesize = XT_ALIGN(0),
.help = &help,
.parse = &parse,
- .final_check = &final_check,
};
static
.userspacesize = XT_ALIGN(0),
.help = &help,
.parse = &parse,
- .final_check = &final_check,
};
void _init(void)
return 0;
}
-static void
-final_check(unsigned int flags)
-{
-}
-
static struct xtables_target trace = {
.family = AF_INET,
.name = "TRACE",
.userspacesize = XT_ALIGN(0),
.help = &help,
.parse = &parse,
- .final_check = &final_check,
.print = NULL, /* print */
.save = NULL, /* save */
};
.userspacesize = XT_ALIGN(0),
.help = &help,
.parse = &parse,
- .final_check = &final_check,
.print = NULL, /* print */
.save = NULL, /* save */
};
return 1;
}
-static void
-final_check(unsigned int flags)
-{
-}
-
static char *
port_to_service(int port)
{
.help = &help,
.init = &init,
.parse = &parse,
- .final_check = &final_check,
.print = &print,
.save = &save,
.extra_opts = opts
.help = &help,
.init = &init,
.parse = &parse,
- .final_check = &final_check,
.print = &print,
.save = &save,
.extra_opts = opts
return 1;
}
-/* Final check; we don't care. */
-static void
-final_check(unsigned int flags)
-{
-}
-
static void
print_spis(const char *name, u_int32_t min, u_int32_t max,
int invert)
.help = &help,
.init = &init,
.parse = &parse,
- .final_check = &final_check,
.print = &print,
.save = &save,
.extra_opts = opts
.help = &help,
.init = &init,
.parse = &parse,
- .final_check = &final_check,
.print = &print,
.save = &save,
.extra_opts = opts
return 1;
}
-/* Final check; nothing. */
-static void final_check(unsigned int flags)
-{
-}
-
static struct rates
{
const char *name;
.help = &help,
.init = &init,
.parse = &parse,
- .final_check = &final_check,
.print = &print,
.save = &save,
.extra_opts = opts
.help = &help,
.init = &init,
.parse = &parse,
- .final_check = &final_check,
.print = &print,
.save = &save,
.extra_opts = opts
return 1;
}
-/* no final check */
-static void
-final_check(unsigned int flags)
-{
-}
-
struct xtables_match quota = {
.family = AF_INET,
.name = "quota",
.userspacesize = offsetof(struct xt_quota_info, quota),
.help = &help,
.parse = &parse,
- .final_check = &final_check,
.print = &print,
.save = &save,
.extra_opts = opts
.userspacesize = offsetof(struct xt_quota_info, quota),
.help = &help,
.parse = &parse,
- .final_check = &final_check,
.print = &print,
.save = &save,
.extra_opts = opts
return 1;
}
-static void
-final_check(unsigned int flags)
-{
-}
-
static char *
port_to_service(int port)
{
.help = &help,
.init = &init,
.parse = &parse,
- .final_check = &final_check,
.print = &print,
.save = &save,
.extra_opts = opts
.help = &help,
.init = &init,
.parse = &parse,
- .final_check = &final_check,
.print = &print,
.save = &save,
.extra_opts = opts
return 0;
}
-/* Final check; don't care. */
-static void final_check(unsigned int flags)
-{
-}
-
/* Saves the targinfo in parsable form to stdout. */
static void
save(const void *ip, const struct xt_entry_target *target)
.userspacesize = XT_ALIGN(sizeof(int)),
.help = &help,
.parse = &parse,
- .final_check = &final_check,
.print = NULL,
.save = &save,
};
.userspacesize = XT_ALIGN(sizeof(int)),
.help = &help,
.parse = &parse,
- .final_check = &final_check,
.print = NULL,
.save = &save,
};
return 1;
}
-/* Final check; we don't care. */
-static void
-final_check(unsigned int flags)
-{
-}
-
static char *
port_to_service(int port)
{
.help = &help,
.init = &init,
.parse = &parse,
- .final_check = &final_check,
.print = &print,
.save = &save,
.extra_opts = opts,
.help = &help,
.init = &init,
.parse = &parse,
- .final_check = &final_check,
.print = &print,
.save = &save,
.extra_opts = opts,
return 0;
}
-static void time_check(unsigned int flags)
-{
-}
-
static void time_print_date(time_t date, const char *command)
{
struct tm *t;
.help = time_help,
.init = time_init,
.parse = time_parse,
- .final_check = time_check,
.print = time_print,
.save = time_save,
.extra_opts = time_opts,
.help = time_help,
.init = time_init,
.parse = time_parse,
- .final_check = time_check,
.print = time_print,
.save = time_save,
.extra_opts = time_opts,
}
}
-static void u32_check(unsigned int flags)
-{
-}
-
static void u32_print(const void *ip, const struct xt_entry_match *match,
int numeric)
{
.userspacesize = XT_ALIGN(sizeof(struct xt_u32)),
.help = u32_help,
.parse = u32_parse,
- .final_check = u32_check,
.print = u32_print,
.save = u32_save,
.extra_opts = u32_opts,
.userspacesize = XT_ALIGN(sizeof(struct xt_u32)),
.help = u32_help,
.parse = u32_parse,
- .final_check = u32_check,
.print = u32_print,
.save = u32_save,
.extra_opts = u32_opts,
return 1;
}
-/* Final check; we don't care. */
-static void
-final_check(unsigned int flags)
-{
-}
-
static char *
port_to_service(int port)
{
.help = &help,
.init = &init,
.parse = &parse,
- .final_check = &final_check,
.print = &print,
.save = &save,
.extra_opts = opts
.help = &help,
.init = &init,
.parse = &parse,
- .final_check = &final_check,
.print = &print,
.save = &save,
.extra_opts = opts
}
for (matchp = matches; matchp; matchp = matchp->next)
- matchp->match->final_check(matchp->match->mflags);
+ if (matchp->match->final_check != NULL)
+ matchp->match->final_check(matchp->match->mflags);
- if (target)
+ if (target != NULL && target->final_check != NULL)
target->final_check(target->tflags);
/* Fix me: must put inverse options checking here --MN */
}
for (matchp = matches; matchp; matchp = matchp->next)
- matchp->match->final_check(matchp->match->mflags);
+ if (matchp->match->final_check != NULL)
+ matchp->match->final_check(matchp->match->mflags);
- if (target)
+ if (target != NULL && target->final_check != NULL)
target->final_check(target->tflags);
/* Fix me: must put inverse options checking here --MN */