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_ah.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'extensions/libip6t_ah.c') diff --git a/extensions/libip6t_ah.c b/extensions/libip6t_ah.c index 46469ea..ce2d7fc 100644 --- a/extensions/libip6t_ah.c +++ b/extensions/libip6t_ah.c @@ -12,11 +12,10 @@ static void ah_help(void) { printf( -"AH v%s options:\n" +"ah match options:\n" " --ahspi [!] spi[:spi] match spi (range)\n" " --ahlen [!] length total length of this header\n" -" --ahres check the reserved filed, too\n", -IPTABLES_VERSION); +" --ahres check the reserved filed, too\n"); } static const struct option ah_opts[] = { @@ -193,11 +192,12 @@ static void ah_save(const void *ip, const struct xt_entry_match *match) printf("--ahres "); } -static struct ip6tables_match ah_match6 = { +static struct xtables_match ah_mt6_reg = { .name = "ah", - .version = IPTABLES_VERSION, - .size = IP6T_ALIGN(sizeof(struct ip6t_ah)), - .userspacesize = IP6T_ALIGN(sizeof(struct ip6t_ah)), + .version = XTABLES_VERSION, + .family = PF_INET6, + .size = XT_ALIGN(sizeof(struct ip6t_ah)), + .userspacesize = XT_ALIGN(sizeof(struct ip6t_ah)), .help = ah_help, .init = ah_init, .parse = ah_parse, @@ -209,5 +209,5 @@ static struct ip6tables_match ah_match6 = { void _init(void) { - register_match6(&ah_match6); + xtables_register_match(&ah_mt6_reg); } -- cgit v1.2.3