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_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 648d0980..4bdbd1b4 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