From 4002f8c8a8ce703c725baecc5febdf2704020426 Mon Sep 17 00:00:00 2001 From: "/C=JP/ST=JP/CN=Yasuyuki Kozakai/emailAddress=yasuyuki@netfilter.org" Date: Tue, 24 Jul 2007 07:00:40 +0000 Subject: Unifies libip[6]t_standard.c into libxt_standard.c --- extensions/libipt_standard.c | 69 -------------------------------------------- 1 file changed, 69 deletions(-) delete mode 100644 extensions/libipt_standard.c (limited to 'extensions/libipt_standard.c') diff --git a/extensions/libipt_standard.c b/extensions/libipt_standard.c deleted file mode 100644 index 2b96697..0000000 --- a/extensions/libipt_standard.c +++ /dev/null @@ -1,69 +0,0 @@ -/* 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", IPTABLES_VERSION); -} - -static struct option opts[] = { - {0} -}; - -/* Initialize the target. */ -static void -init(struct xt_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 void *entry, - struct xt_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 void *ip, const struct xt_entry_target *target) -{ -} - -static -struct iptables_target standard = { - .next = NULL, - .name = "standard", - .version = IPTABLES_VERSION, - .size = IPT_ALIGN(sizeof(int)), - .userspacesize = IPT_ALIGN(sizeof(int)), - .help = &help, - .init = &init, - .parse = &parse, - .final_check = &final_check, - .print = NULL, - .save = &save, - .extra_opts = opts -}; - -void _init(void) -{ - register_target(&standard); -} -- cgit v1.2.3