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/libip6t_mh.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'extensions/libip6t_mh.c') diff --git a/extensions/libip6t_mh.c b/extensions/libip6t_mh.c index dd0da2b..a6cd562 100644 --- a/extensions/libip6t_mh.c +++ b/extensions/libip6t_mh.c @@ -61,9 +61,8 @@ static void print_types_all(void) static void mh_help(void) { printf( -"MH v%s options:\n" -" --mh-type [!] type[:type] match mh type\n", -IPTABLES_VERSION); +"mh match options:\n" +" --mh-type [!] type[:type] match mh type\n"); print_types_all(); } @@ -223,11 +222,12 @@ static const struct option mh_opts[] = { { .name = NULL } }; -static struct ip6tables_match mh_match6 = { +static struct xtables_match mh_mt6_reg = { .name = "mh", - .version = IPTABLES_VERSION, - .size = IP6T_ALIGN(sizeof(struct ip6t_mh)), - .userspacesize = IP6T_ALIGN(sizeof(struct ip6t_mh)), + .version = XTABLES_VERSION, + .family = PF_INET6, + .size = XT_ALIGN(sizeof(struct ip6t_mh)), + .userspacesize = XT_ALIGN(sizeof(struct ip6t_mh)), .help = mh_help, .init = mh_init, .parse = mh_parse, @@ -238,5 +238,5 @@ static struct ip6tables_match mh_match6 = { void _init(void) { - register_match6(&mh_match6); + xtables_register_match(&mh_mt6_reg); } -- cgit v1.2.3