From ee604b7e36f2678bf086e145a184e2403c72389a Mon Sep 17 00:00:00 2001 From: Philip Blundell Date: Thu, 8 Jun 2000 04:39:29 +0000 Subject: Phil's missing file 8) --- extensions/libip6t_standard.c | 68 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 extensions/libip6t_standard.c (limited to 'extensions') diff --git a/extensions/libip6t_standard.c b/extensions/libip6t_standard.c new file mode 100644 index 00000000..589b9058 --- /dev/null +++ b/extensions/libip6t_standard.c @@ -0,0 +1,68 @@ +/* Shared library add-on to iptables for standard target support. */ +#include +#include +#include +#include +#include +#include +#include + +/* Function which prints out usage message. */ +static void +help(void) +{ + printf( +"Standard v%s options:\n" +"(If target is DROP, ACCEPT, RETURN or nothing)\n", NETFILTER_VERSION); +} + +static struct option opts[] = { + {0} +}; + +/* Initialize the target. */ +static void +init(struct ip6t_entry_target *t, unsigned int *nfcache) +{ +} + +/* Function which parses command options; returns true if it + ate an option */ +static int +parse(int c, char **argv, int invert, unsigned int *flags, + const struct ip6t_entry *entry, + struct ip6t_entry_target **target) +{ + return 0; +} + +/* Final check; don't care. */ +static void final_check(unsigned int flags) +{ +} + +/* Saves the targinfo in parsable form to stdout. */ +static void +save(const struct ip6t_ip6 *ip6, const struct ip6t_entry_target *target) +{ +} + +struct ip6tables_target standard += { NULL, + "standard", + NETFILTER_VERSION, + sizeof(int), + sizeof(int), + &help, + &init, + &parse, + &final_check, + NULL, /* print */ + &save, + opts +}; + +void _init(void) +{ + register_target6(&standard); +} -- cgit v1.2.3