diff options
author | /C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net> | 2008-04-15 12:01:06 +0000 |
---|---|---|
committer | /C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net> | 2008-04-15 12:01:06 +0000 |
commit | 6cd49745931f42cfe2280bf78e483035c3c5e2e6 (patch) | |
tree | 47489e2ac7ae083087ec7f0675f1c2e5fc2b4d7a /extensions/libipt_unclean.c | |
parent | fbde4d9d1119908b37c9bb95886294fb6e2493e0 (diff) |
[PATCH 08/10] Remove old functions, constants
Diffstat (limited to 'extensions/libipt_unclean.c')
-rw-r--r-- | extensions/libipt_unclean.c | 15 |
1 files changed, 7 insertions, 8 deletions
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); } |