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 c20147bd..e726a945 100644 --- a/extensions/libip6t_HL.c +++ b/extensions/libip6t_HL.c @@ -19,11 +19,10 @@ static void HL_help(void) { printf( -"HL target v%s options\n" +"HL target options\n" " --hl-set value Set HL to \n" " --hl-dec value Decrement HL by \n" -" --hl-inc value Increment HL by \n" -, IPTABLES_VERSION); +" --hl-inc value Increment HL by \n"); } static int HL_parse(int c, char **argv, int invert, unsigned int *flags, @@ -139,11 +138,12 @@ static const struct option HL_opts[] = { { .name = NULL } }; -static struct ip6tables_target hl_target6 = { +static struct xtables_target hl_tg6_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, @@ -154,5 +154,5 @@ static struct ip6tables_target hl_target6 = { void _init(void) { - register_target6(&hl_target6); + xtables_register_target(&hl_tg6_reg); } -- cgit v1.2.3