#define IP6T_HL_USED 1
-static void init(struct xt_entry_target *t)
-{
-}
-
static void help(void)
{
printf(
.size = IP6T_ALIGN(sizeof(struct ip6t_HL_info)),
.userspacesize = IP6T_ALIGN(sizeof(struct ip6t_HL_info)),
.help = &help,
- .init = &init,
.parse = &parse,
.final_check = &final_check,
.print = &print,
/* End duplicated code from ip6tables.c */
-static void init(struct xt_entry_match *m)
-{
-}
-
static int parse_direction(char *s)
{
if (strcmp(s, "in") == 0)
.size = IP6T_ALIGN(sizeof(struct ip6t_policy_info)),
.userspacesize = IP6T_ALIGN(sizeof(struct ip6t_policy_info)),
.help = help,
- .init = init,
.parse = parse,
.final_check = final_check,
.print = print,
{ }
};
-static void
-init(struct xt_entry_target *t)
-{
-}
-
static void
parse_mac(const char *mac, char *macbuf)
{
.size = IPT_ALIGN(sizeof(struct ipt_clusterip_tgt_info)),
.userspacesize = offsetof(struct ipt_clusterip_tgt_info, config),
.help = &help,
- .init = &init,
.parse = &parse,
.final_check = &final_check,
.print = &print,
#include <linux/netfilter_ipv4/ip_tables.h>
#include <linux/netfilter_ipv4/ipt_ECN.h>
-static void init(struct xt_entry_target *t)
-{
-}
-
static void help(void)
{
printf(
.size = IPT_ALIGN(sizeof(struct ipt_ECN_info)),
.userspacesize = IPT_ALIGN(sizeof(struct ipt_ECN_info)),
.help = &help,
- .init = &init,
.parse = &parse,
.final_check = &final_check,
.print = &print,
IPTABLES_VERSION);
}
-/* Initialize the target. */
-static void
-init(struct xt_entry_target *t)
-{
-}
-
/* Function which parses command options; returns true if it
ate an option */
static int
.size = IPT_ALIGN(0),
.userspacesize = IPT_ALIGN(0),
.help = &help,
- .init = &init,
.parse = &parse,
.final_check = &final_check,
.print = NULL,
{ }
};
-/* Initialize the target. */
-static void
-init(struct xt_entry_target *t)
-{
-}
-
static void
parse_tos(const char *s, struct ipt_tos_target_info *info)
{
.size = IPT_ALIGN(sizeof(struct ipt_tos_target_info)),
.userspacesize = IPT_ALIGN(sizeof(struct ipt_tos_target_info)),
.help = &help,
- .init = &init,
.parse = &parse,
.final_check = &final_check,
.print = &print,
#define IPT_TTL_USED 1
-static void init(struct xt_entry_target *t)
-{
-}
-
static void help(void)
{
printf(
.size = IPT_ALIGN(sizeof(struct ipt_TTL_info)),
.userspacesize = IPT_ALIGN(sizeof(struct ipt_TTL_info)),
.help = &help,
- .init = &init,
.parse = &parse,
.final_check = &final_check,
.print = &print,
{ }
};
-static void init(struct xt_entry_match *m)
-{
-}
-
static int parse_direction(char *s)
{
if (strcmp(s, "in") == 0)
.size = IPT_ALIGN(sizeof(struct ipt_policy_info)),
.userspacesize = IPT_ALIGN(sizeof(struct ipt_policy_info)),
.help = help,
- .init = init,
.parse = parse,
.final_check = final_check,
.print = print,
{ }
};
-/* Initialize the target. */
-static void
-init(struct xt_entry_target *t)
-{
-}
-
int string_to_priority(const char *s, unsigned int *p)
{
unsigned int i, j;
.size = XT_ALIGN(sizeof(struct xt_classify_target_info)),
.userspacesize = XT_ALIGN(sizeof(struct xt_classify_target_info)),
.help = &help,
- .init = &init,
.parse = &parse,
.final_check = &final_check,
.print = &print,
.size = XT_ALIGN(sizeof(struct xt_classify_target_info)),
.userspacesize = XT_ALIGN(sizeof(struct xt_classify_target_info)),
.help = &help,
- .init = &init,
.parse = &parse,
.final_check = &final_check,
.print = &print,
{ }
};
-/* Initialize the target. */
-static void
-init(struct xt_entry_target *t)
-{
-}
-
/* Function which parses command options; returns true if it
ate an option */
static int
.size = XT_ALIGN(sizeof(struct xt_connmark_target_info)),
.userspacesize = XT_ALIGN(sizeof(struct xt_connmark_target_info)),
.help = &help,
- .init = &init,
.parse = &parse,
.final_check = &final_check,
.print = &print,
.size = XT_ALIGN(sizeof(struct xt_connmark_target_info)),
.userspacesize = XT_ALIGN(sizeof(struct xt_connmark_target_info)),
.help = &help,
- .init = &init,
.parse = &parse,
.final_check = &final_check,
.print = &print,
/* This is evil, but it's my code - HW*/
#include "libipt_dscp_helper.c"
-
-static void init(struct xt_entry_target *t)
-{
-}
-
static void help(void)
{
printf(
.size = XT_ALIGN(sizeof(struct xt_DSCP_info)),
.userspacesize = XT_ALIGN(sizeof(struct xt_DSCP_info)),
.help = &help,
- .init = &init,
.parse = &parse,
.final_check = &final_check,
.print = &print,
.size = XT_ALIGN(sizeof(struct xt_DSCP_info)),
.userspacesize = XT_ALIGN(sizeof(struct xt_DSCP_info)),
.help = &help,
- .init = &init,
.parse = &parse,
.final_check = &final_check,
.print = &print,
{ }
};
-/* Initialize the target. */
-static void
-init(struct xt_entry_target *t)
-{
-}
-
/* Function which parses command options; returns true if it
ate an option */
static int
.size = XT_ALIGN(sizeof(struct xt_mark_target_info)),
.userspacesize = XT_ALIGN(sizeof(struct xt_mark_target_info)),
.help = &help,
- .init = &init,
.parse = &parse_v0,
.final_check = &final_check,
.print = &print_v0,
.size = XT_ALIGN(sizeof(struct xt_mark_target_info_v1)),
.userspacesize = XT_ALIGN(sizeof(struct xt_mark_target_info_v1)),
.help = &help,
- .init = &init,
.parse = &parse_v1,
.final_check = &final_check,
.print = &print_v1,
.size = XT_ALIGN(sizeof(struct xt_mark_target_info)),
.userspacesize = XT_ALIGN(sizeof(struct xt_mark_target_info)),
.help = &help,
- .init = &init,
.parse = &parse_v0,
.final_check = &final_check,
.print = &print_v0,
#include <linux/netfilter/x_tables.h>
#include <linux/netfilter/xt_NFQUEUE.h>
-static void init(struct xt_entry_target *t)
-{
-}
-
static void help(void)
{
printf(
.size = XT_ALIGN(sizeof(struct xt_NFQ_info)),
.userspacesize = XT_ALIGN(sizeof(struct xt_NFQ_info)),
.help = &help,
- .init = &init,
.parse = &parse,
.final_check = &final_check,
.print = &print,
.size = XT_ALIGN(sizeof(struct xt_NFQ_info)),
.userspacesize = XT_ALIGN(sizeof(struct xt_NFQ_info)),
.help = &help,
- .init = &init,
.parse = &parse,
.final_check = &final_check,
.print = &print,
IPTABLES_VERSION);
}
-/* Initialize the target. */
-static void
-init(struct xt_entry_target *t)
-{
-}
-
/* Function which parses command options; returns true if it
ate an option */
static int
.size = XT_ALIGN(0),
.userspacesize = XT_ALIGN(0),
.help = &help,
- .init = &init,
.parse = &parse,
.final_check = &final_check,
};
.size = XT_ALIGN(0),
.userspacesize = XT_ALIGN(0),
.help = &help,
- .init = &init,
.parse = &parse,
.final_check = &final_check,
};
{ 0 }
};
-/* Initialize the target. */
-static void init(struct xt_entry_target *t)
-{ }
-
/*
* Function which parses command options; returns true if it
* ate an option.
.size = XT_ALIGN(sizeof(struct xt_secmark_target_info)),
.userspacesize = XT_ALIGN(sizeof(struct xt_secmark_target_info)),
.help = &help,
- .init = &init,
.parse = &parse,
.final_check = &final_check,
.print = &print,
.size = XT_ALIGN(sizeof(struct xt_secmark_target_info)),
.userspacesize = XT_ALIGN(sizeof(struct xt_secmark_target_info)),
.help = &help,
- .init = &init,
.parse = &parse,
.final_check = &final_check,
.print = &print,
{ }
};
-/* Initialize the target. */
-static void
-init(struct xt_entry_target *t)
-{
-}
-
/* Function which parses command options; returns true if it
ate an option */
static int
.size = XT_ALIGN(sizeof(struct xt_tcpmss_info)),
.userspacesize = XT_ALIGN(sizeof(struct xt_tcpmss_info)),
.help = &help,
- .init = &init,
.parse = &parse,
.final_check = &final_check,
.print = &print,
.size = XT_ALIGN(sizeof(struct xt_tcpmss_info)),
.userspacesize = XT_ALIGN(sizeof(struct xt_tcpmss_info)),
.help = &help6,
- .init = &init,
.parse = &parse6,
.final_check = &final_check,
.print = &print,
IPTABLES_VERSION);
}
-/* Initialize the target. */
-static void
-init(struct xt_entry_target *t)
-{
-}
-
/* Function which parses command options; returns true if it
ate an option */
static int
.size = XT_ALIGN(0),
.userspacesize = XT_ALIGN(0),
.help = &help,
- .init = &init,
.parse = &parse,
.final_check = &final_check,
.print = NULL, /* print */
.size = XT_ALIGN(0),
.userspacesize = XT_ALIGN(0),
.help = &help,
- .init = &init,
.parse = &parse,
.final_check = &final_check,
.print = NULL, /* print */
free(buffer);
}
-/* Initialize the match. */
-static void
-init(struct xt_entry_match *m)
-{
-}
-
static const char *
check_proto(u_int16_t pnum, u_int8_t invflags)
{
.size = XT_ALIGN(sizeof(struct xt_multiport)),
.userspacesize = XT_ALIGN(sizeof(struct xt_multiport)),
.help = &help,
- .init = &init,
.parse = &parse,
.final_check = &final_check,
.print = &print,
.size = XT_ALIGN(sizeof(struct xt_multiport)),
.userspacesize = XT_ALIGN(sizeof(struct xt_multiport)),
.help = &help,
- .init = &init,
.parse = &parse6,
.final_check = &final_check,
.print = &print6,
.size = XT_ALIGN(sizeof(struct xt_multiport_v1)),
.userspacesize = XT_ALIGN(sizeof(struct xt_multiport_v1)),
.help = &help_v1,
- .init = &init,
.parse = &parse_v1,
.final_check = &final_check,
.print = &print_v1,
.size = XT_ALIGN(sizeof(struct xt_multiport_v1)),
.userspacesize = XT_ALIGN(sizeof(struct xt_multiport_v1)),
.help = &help_v1,
- .init = &init,
.parse = &parse6_v1,
.final_check = &final_check,
.print = &print6_v1,
{ }
};
-static void
-init(struct xt_entry_match *m)
-{
-}
-
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
.size = XT_ALIGN(sizeof(struct xt_physdev_info)),
.userspacesize = XT_ALIGN(sizeof(struct xt_physdev_info)),
.help = &help,
- .init = &init,
.parse = &parse,
.final_check = &final_check,
.print = &print,
.size = XT_ALIGN(sizeof(struct xt_physdev_info)),
.userspacesize = XT_ALIGN(sizeof(struct xt_physdev_info)),
.help = &help,
- .init = &init,
.parse = &parse,
.final_check = &final_check,
.print = &print,
"(If target is DROP, ACCEPT, RETURN or nothing)\n", IPTABLES_VERSION);
}
-/* Initialize the target. */
-static void
-init(struct xt_entry_target *t)
-{
-}
-
/* Function which parses command options; returns true if it
ate an option */
static int
.size = XT_ALIGN(sizeof(int)),
.userspacesize = XT_ALIGN(sizeof(int)),
.help = &help,
- .init = &init,
.parse = &parse,
.final_check = &final_check,
.print = NULL,
.size = XT_ALIGN(sizeof(int)),
.userspacesize = XT_ALIGN(sizeof(int)),
.help = &help,
- .init = &init,
.parse = &parse,
.final_check = &final_check,
.print = NULL,