summaryrefslogtreecommitdiffstats
path: root/extensions/libip6t_eui64.c
diff options
context:
space:
mode:
author/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net>2007-10-04 16:29:21 +0000
committer/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net>2007-10-04 16:29:21 +0000
commit2df127b923c944f82e4fff5bd59793b5eee6834f (patch)
tree42f7b0e1bf015f92f7191dcc34da8b0d7a37412a /extensions/libip6t_eui64.c
parentb9f8667c366415051abe9f147385bd92562701b5 (diff)
[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 <jengelh@gmx.de>
Diffstat (limited to 'extensions/libip6t_eui64.c')
-rw-r--r--extensions/libip6t_eui64.c17
1 files changed, 7 insertions, 10 deletions
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 <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);
}