Deletes empty ->print() and ->save() functions.
ip[6]tables prints the trivial thing automatically.
Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
return 0;
}
-/* Prints out the matchinfo. */
-static void
-print(const void *ip,
- const struct xt_entry_match *match,
- int numeric)
-{
- printf("eui64 ");
-}
-
-/* Saves the union ip6t_matchinfo in parsable form to stdout. */
-static void save(const void *ip, const struct xt_entry_match *match)
-{
-
-}
-
static struct ip6tables_match eui64 = {
.name = "eui64",
.version = IPTABLES_VERSION,
.userspacesize = IP6T_ALIGN(sizeof(int)),
.help = &help,
.parse = &parse,
- .print = &print,
- .save = &save,
};
void _init(void)
.userspacesize = IPT_ALIGN(0),
.help = &help,
.parse = &parse,
- .print = NULL,
- .save = NULL,
};
void _init(void)
.userspacesize = XT_ALIGN(0),
.help = &help,
.parse = &parse,
- .print = NULL, /* print */
- .save = NULL, /* save */
};
static struct xtables_target trace6 = {
.userspacesize = XT_ALIGN(0),
.help = &help,
.parse = &parse,
- .print = NULL, /* print */
- .save = NULL, /* save */
};
void _init(void)
return 0;
}
-/* Saves the targinfo in parsable form to stdout. */
-static void
-save(const void *ip, const struct xt_entry_target *target)
-{
-}
-
static
struct xtables_target standard = {
.family = AF_INET,
.userspacesize = XT_ALIGN(sizeof(int)),
.help = &help,
.parse = &parse,
- .print = NULL,
- .save = &save,
};
static
.userspacesize = XT_ALIGN(sizeof(int)),
.help = &help,
.parse = &parse,
- .print = NULL,
- .save = &save,
};
void _init(void)