From 2df127b923c944f82e4fff5bd59793b5eee6834f Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net" Date: Thu, 4 Oct 2007 16:29:21 +0000 Subject: [PATCH 11/13] Unique names 5/6 Give symbols of libxt matches unique names (3/3). Adds unique prefixes to all functions (most of them - especially the hook functions) so that debugging programs can unambiguously map a symbol to an address. Also unifies the names of the xtables_match/xtables_target structs, (based upon libxt_connmark.c/libip6t_*.c). Signed-off-by: Jan Engelhardt --- extensions/libip6t_eui64.c | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'extensions/libip6t_eui64.c') diff --git a/extensions/libip6t_eui64.c b/extensions/libip6t_eui64.c index 28f8179..45988c4 100644 --- a/extensions/libip6t_eui64.c +++ b/extensions/libip6t_eui64.c @@ -12,8 +12,7 @@ #include /* Function which prints out usage message. */ -static void -help(void) +static void eui64_help(void) { printf( "eui64 v%s options:\n" @@ -24,24 +23,22 @@ help(void) /* Function which parses command options; returns true if it ate an option */ -static int -parse(int c, char **argv, int invert, unsigned int *flags, - const void *entry, - struct xt_entry_match **match) +static int eui64_parse(int c, char **argv, int invert, unsigned int *flags, + const void *entry, struct xt_entry_match **match) { return 0; } -static struct ip6tables_match eui64 = { +static struct ip6tables_match eui64_target6 = { .name = "eui64", .version = IPTABLES_VERSION, .size = IP6T_ALIGN(sizeof(int)), .userspacesize = IP6T_ALIGN(sizeof(int)), - .help = &help, - .parse = &parse, + .help = eui64_help, + .parse = eui64_parse, }; void _init(void) { - register_match6(&eui64); + register_match6(&eui64_target6); } -- cgit v1.2.3