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/libip6t_hl.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'extensions/libip6t_hl.c') diff --git a/extensions/libip6t_hl.c b/extensions/libip6t_hl.c index 7f995988..2af9a206 100644 --- a/extensions/libip6t_hl.c +++ b/extensions/libip6t_hl.c @@ -18,11 +18,10 @@ static void hl_help(void) { printf( -"HL match v%s options:\n" +"hl match options:\n" " --hl-eq [!] value Match hop limit value\n" " --hl-lt value Match HL < value\n" -" --hl-gt value Match HL > value\n" -, IPTABLES_VERSION); +" --hl-gt value Match HL > value\n"); } static int hl_parse(int c, char **argv, int invert, unsigned int *flags, @@ -125,11 +124,12 @@ static const struct option hl_opts[] = { { .name = NULL } }; -static struct ip6tables_match hl_match6 = { +static struct xtables_match hl_mt6_reg = { .name = "hl", - .version = IPTABLES_VERSION, - .size = IP6T_ALIGN(sizeof(struct ip6t_hl_info)), - .userspacesize = IP6T_ALIGN(sizeof(struct ip6t_hl_info)), + .version = XTABLES_VERSION, + .family = PF_INET6, + .size = XT_ALIGN(sizeof(struct ip6t_hl_info)), + .userspacesize = XT_ALIGN(sizeof(struct ip6t_hl_info)), .help = hl_help, .parse = hl_parse, .final_check = hl_check, @@ -141,5 +141,5 @@ static struct ip6tables_match hl_match6 = { void _init(void) { - register_match6(&hl_match6); + xtables_register_match(&hl_mt6_reg); } -- cgit v1.2.3