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_frag.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'extensions/libip6t_frag.c') diff --git a/extensions/libip6t_frag.c b/extensions/libip6t_frag.c index 86f40f4..64e110d 100644 --- a/extensions/libip6t_frag.c +++ b/extensions/libip6t_frag.c @@ -12,14 +12,13 @@ static void frag_help(void) { printf( -"FRAG v%s options:\n" +"frag match options:\n" " --fragid [!] id[:id] match the id (range)\n" " --fraglen [!] length total length of this header\n" " --fragres check the reserved filed, too\n" " --fragfirst matches on the first fragment\n" " [--fragmore|--fraglast] there are more fragments or this\n" -" is the last one\n", -IPTABLES_VERSION); +" is the last one\n"); } static const struct option frag_opts[] = { @@ -238,11 +237,12 @@ static void frag_save(const void *ip, const struct xt_entry_match *match) printf("--fraglast "); } -static struct ip6tables_match frag_match6 = { +static struct xtables_match frag_mt6_reg = { .name = "frag", - .version = IPTABLES_VERSION, - .size = IP6T_ALIGN(sizeof(struct ip6t_frag)), - .userspacesize = IP6T_ALIGN(sizeof(struct ip6t_frag)), + .version = XTABLES_VERSION, + .family = PF_INET6, + .size = XT_ALIGN(sizeof(struct ip6t_frag)), + .userspacesize = XT_ALIGN(sizeof(struct ip6t_frag)), .help = frag_help, .init = frag_init, .parse = frag_parse, @@ -254,5 +254,5 @@ static struct ip6tables_match frag_match6 = { void _init(void) { - register_match6(&frag_match6); + xtables_register_match(&frag_mt6_reg); } -- cgit v1.2.3