1 /* Shared library add-on to iptables for standard target support. */
10 /* Function which prints out usage message. */
15 "Standard v%s options:\n"
16 "(If target is DROP, ACCEPT, RETURN or nothing)\n", IPTABLES_VERSION
);
19 static struct option opts
[] = {
23 /* Initialize the target. */
25 init(struct ip6t_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 ip6t_entry
*entry
,
34 struct ip6t_entry_target
**target
)
39 /* Final check; don't care. */
40 static void final_check(unsigned int flags
)
44 /* Saves the targinfo in parsable form to stdout. */
46 save(const struct ip6t_ip6
*ip6
, const struct ip6t_entry_target
*target
)
50 static struct ip6tables_target standard
= {
52 .version
= IPTABLES_VERSION
,
53 .size
= IP6T_ALIGN(sizeof(int)),
54 .userspacesize
= IP6T_ALIGN(sizeof(int)),
58 .final_check
= &final_check
,
65 register_target6(&standard
);