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_recent.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'extensions/libipt_recent.c') diff --git a/extensions/libipt_recent.c b/extensions/libipt_recent.c index ace778e..51b0d15 100644 --- a/extensions/libipt_recent.c +++ b/extensions/libipt_recent.c @@ -40,7 +40,7 @@ static const struct option recent_opts[] = { static void recent_help(void) { printf( -"recent v%s options:\n" +"recent match options:\n" "[!] --set Add source address to list, always matches.\n" "[!] --rcheck Match if source address in list.\n" "[!] --update Match if source address in list, also update last-seen time.\n" @@ -59,10 +59,7 @@ static void recent_help(void) " --name name Name of the recent list to be used. DEFAULT used if none given.\n" " --rsource Match/Save the source address of each packet in the recent list table (default).\n" " --rdest Match/Save the destination address of each packet in the recent list table.\n" -RECENT_NAME " " RECENT_VER ": Stephen Frost . http://snowman.net/projects/ipt_recent/\n" -, -IPTABLES_VERSION); - +RECENT_NAME " " RECENT_VER ": Stephen Frost . http://snowman.net/projects/ipt_recent/\n"); } /* Initialize the match. */ @@ -210,11 +207,12 @@ static void recent_save(const void *ip, const struct xt_entry_match *match) } /* Structure for iptables to use to communicate with module */ -static struct iptables_match recent_match = { +static struct xtables_match recent_mt_reg = { .name = "recent", - .version = IPTABLES_VERSION, - .size = IPT_ALIGN(sizeof(struct ipt_recent_info)), - .userspacesize = IPT_ALIGN(sizeof(struct ipt_recent_info)), + .version = XTABLES_VERSION, + .family = PF_INET, + .size = XT_ALIGN(sizeof(struct ipt_recent_info)), + .userspacesize = XT_ALIGN(sizeof(struct ipt_recent_info)), .help = recent_help, .init = recent_init, .parse = recent_parse, @@ -226,5 +224,5 @@ static struct iptables_match recent_match = { void _init(void) { - register_match(&recent_match); + xtables_register_match(&recent_mt_reg); } -- cgit v1.2.3