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_ttl.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'extensions/libipt_ttl.c') diff --git a/extensions/libipt_ttl.c b/extensions/libipt_ttl.c index d7820f1..25b9206 100644 --- a/extensions/libipt_ttl.c +++ b/extensions/libipt_ttl.c @@ -17,11 +17,10 @@ static void ttl_help(void) { printf( -"TTL match v%s options:\n" +"ttl match options:\n" " --ttl-eq value Match time to live value\n" " --ttl-lt value Match TTL < value\n" -" --ttl-gt value Match TTL > value\n" -, IPTABLES_VERSION); +" --ttl-gt value Match TTL > value\n"); } static int ttl_parse(int c, char **argv, int invert, unsigned int *flags, @@ -148,11 +147,12 @@ static const struct option ttl_opts[] = { { .name = NULL } }; -static struct iptables_match ttl_match = { +static struct xtables_match ttl_mt_reg = { .name = "ttl", - .version = IPTABLES_VERSION, - .size = IPT_ALIGN(sizeof(struct ipt_ttl_info)), - .userspacesize = IPT_ALIGN(sizeof(struct ipt_ttl_info)), + .version = XTABLES_VERSION, + .family = PF_INET, + .size = XT_ALIGN(sizeof(struct ipt_ttl_info)), + .userspacesize = XT_ALIGN(sizeof(struct ipt_ttl_info)), .help = ttl_help, .parse = ttl_parse, .final_check = ttl_check, @@ -164,5 +164,5 @@ static struct iptables_match ttl_match = { void _init(void) { - register_match(&ttl_match); + xtables_register_match(&ttl_mt_reg); } -- cgit v1.2.3