diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2007-10-04 16:29:21 +0000 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2007-10-04 16:29:21 +0000 |
commit | 997045f536026c0d643bf884da5ff5de2605197f (patch) | |
tree | 42f7b0e1bf015f92f7191dcc34da8b0d7a37412a /extensions/libip6t_eui64.c | |
parent | 1d5b63d12984d12c8d87242179855e17657be16d (diff) |
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 <jengelh@gmx.de>
Diffstat (limited to 'extensions/libip6t_eui64.c')
-rw-r--r-- | extensions/libip6t_eui64.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/extensions/libip6t_eui64.c b/extensions/libip6t_eui64.c index 28f8179c..45988c46 100644 --- a/extensions/libip6t_eui64.c +++ b/extensions/libip6t_eui64.c @@ -12,8 +12,7 @@ #include <ip6tables.h> /* 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); } |