From 8b7c64d6ba156a99008fcd810cba874c73294333 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 15 Apr 2008 11:48:25 +0200 Subject: Remove old functions, constants --- extensions/libipt_MIRROR.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'extensions/libipt_MIRROR.c') diff --git a/extensions/libipt_MIRROR.c b/extensions/libipt_MIRROR.c index 83397feb..cc1c7a4e 100644 --- a/extensions/libipt_MIRROR.c +++ b/extensions/libipt_MIRROR.c @@ -10,9 +10,7 @@ /* Function which prints out usage message. */ static void MIRROR_help(void) { - printf( -"MIRROR target v%s takes no options\n", -IPTABLES_VERSION); + printf("MIRROR target takes no options\n"); } /* Function which parses command options; returns true if it @@ -23,11 +21,12 @@ static int MIRROR_parse(int c, char **argv, int invert, unsigned int *flags, return 0; } -static struct iptables_target mirror_target = { +static struct xtables_target mirror_tg_reg = { .name = "MIRROR", - .version = IPTABLES_VERSION, - .size = IPT_ALIGN(0), - .userspacesize = IPT_ALIGN(0), + .version = XTABLES_VERSION, + .family = PF_INET, + .size = XT_ALIGN(0), + .userspacesize = XT_ALIGN(0), .help = MIRROR_help, .parse = MIRROR_parse, .print = NULL, @@ -36,5 +35,5 @@ static struct iptables_target mirror_target = { void _init(void) { - register_target(&mirror_target); + xtables_register_target(&mirror_tg_reg); } -- cgit v1.2.3