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_eui64.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'extensions/libip6t_eui64.c') diff --git a/extensions/libip6t_eui64.c b/extensions/libip6t_eui64.c index 45988c4..b93d121 100644 --- a/extensions/libip6t_eui64.c +++ b/extensions/libip6t_eui64.c @@ -15,10 +15,9 @@ static void eui64_help(void) { printf( -"eui64 v%s options:\n" +"eui64 match options:\n" " This module hasn't got any option\n" -" This module checks for EUI64 IPv6 addresses\n" -"\n", IPTABLES_VERSION); +" This module checks for EUI64 IPv6 addresses\n"); } /* Function which parses command options; returns true if it @@ -29,16 +28,17 @@ static int eui64_parse(int c, char **argv, int invert, unsigned int *flags, return 0; } -static struct ip6tables_match eui64_target6 = { +static struct xtables_match eui64_mt6_reg = { .name = "eui64", - .version = IPTABLES_VERSION, - .size = IP6T_ALIGN(sizeof(int)), - .userspacesize = IP6T_ALIGN(sizeof(int)), + .version = XTABLES_VERSION, + .family = PF_INET6, + .size = XT_ALIGN(sizeof(int)), + .userspacesize = XT_ALIGN(sizeof(int)), .help = eui64_help, .parse = eui64_parse, }; void _init(void) { - register_match6(&eui64_target6); + xtables_register_match(&eui64_mt6_reg); } -- cgit v1.2.3