From 6cd49745931f42cfe2280bf78e483035c3c5e2e6 Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net" Date: Tue, 15 Apr 2008 12:01:06 +0000 Subject: [PATCH 08/10] Remove old functions, constants --- extensions/libipt_unclean.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'extensions/libipt_unclean.c') diff --git a/extensions/libipt_unclean.c b/extensions/libipt_unclean.c index 648d098..4bdbd1b 100644 --- a/extensions/libipt_unclean.c +++ b/extensions/libipt_unclean.c @@ -7,9 +7,7 @@ /* Function which prints out usage message. */ static void unclean_help(void) { - printf( -"unclean v%s takes no options\n" -"\n", IPTABLES_VERSION); + printf("unclean match takes no options\n"); } /* Function which parses command options; returns true if it @@ -20,16 +18,17 @@ static int unclean_parse(int c, char **argv, int invert, unsigned int *flags, return 0; } -static struct iptables_match unclean_match = { +static struct xtables_match unclean_mt_reg = { .name = "unclean", - .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 = unclean_help, .parse = unclean_parse, }; void _init(void) { - register_match(&unclean_match); + xtables_register_match(&unclean_mt_reg); } -- cgit v1.2.3