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. */
15 "MIRROR target v%s takes no options\n",
19 static struct option opts
[] = {
23 /* Initialize the target. */
25 init(struct ipt_entry_target
*t
, unsigned int *nfcache
)
29 /* Function which parses command options; returns true if it
32 parse(int c
, char **argv
, int invert
, unsigned int *flags
,
33 const struct ipt_entry
*entry
,
34 struct ipt_entry_target
**target
)
40 final_check(unsigned int flags
)
44 static struct iptables_target mirror
= {
47 .version
= IPTABLES_VERSION
,
49 .userspacesize
= IPT_ALIGN(0),
53 .final_check
= &final_check
,
61 register_target(&mirror
);