summaryrefslogtreecommitdiffstats
path: root/extensions/libipt_unclean.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2008-04-15 11:48:25 +0200
committerPatrick McHardy <kaber@trash.net>2008-04-15 14:01:06 +0200
commit8b7c64d6ba156a99008fcd810cba874c73294333 (patch)
tree47489e2ac7ae083087ec7f0675f1c2e5fc2b4d7a /extensions/libipt_unclean.c
parentddcb288316c942a5b8de33edd5f03318db8906b7 (diff)
Remove old functions, constants
Diffstat (limited to 'extensions/libipt_unclean.c')
-rw-r--r--extensions/libipt_unclean.c15
1 files changed, 7 insertions, 8 deletions
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);
}