1 /* Shared library add-on to iptables to add MIRROR target support. */
8 #include <linux/netfilter_ipv4/ip_tables.h>
10 /* Function which prints out usage message. */
11 static void MIRROR_help(void)
13 printf("MIRROR target takes no options\n");
16 /* Function which parses command options; returns true if it
18 static int MIRROR_parse(int c, char **argv, int invert, unsigned int *flags,
19 const void *entry, struct xt_entry_target **target)
24 static struct xtables_target mirror_tg_reg = {
26 .version = XTABLES_VERSION,
29 .userspacesize = XT_ALIGN(0),
31 .parse = MIRROR_parse,
38 xtables_register_target(&mirror_tg_reg);