diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2007-10-04 16:29:00 +0000 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2007-10-04 16:29:00 +0000 |
commit | 1d5b63d12984d12c8d87242179855e17657be16d (patch) | |
tree | 9777125dbd44238ad72fbfb4144736cf2339d031 /extensions/libipt_MIRROR.c | |
parent | 59d164019340d110d302634e429320577f0db7be (diff) |
Unique names 4/6
Give symbols of libxt targets unique names (2/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/libipt_MIRROR.c')
-rw-r--r-- | extensions/libipt_MIRROR.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/extensions/libipt_MIRROR.c b/extensions/libipt_MIRROR.c index a75ff9c8..83397feb 100644 --- a/extensions/libipt_MIRROR.c +++ b/extensions/libipt_MIRROR.c @@ -8,8 +8,7 @@ #include <linux/netfilter_ipv4/ip_tables.h> /* Function which prints out usage message. */ -static void -help(void) +static void MIRROR_help(void) { printf( "MIRROR target v%s takes no options\n", @@ -18,26 +17,24 @@ IPTABLES_VERSION); /* 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_target **target) +static int MIRROR_parse(int c, char **argv, int invert, unsigned int *flags, + const void *entry, struct xt_entry_target **target) { return 0; } -static struct iptables_target mirror = { +static struct iptables_target mirror_target = { .name = "MIRROR", .version = IPTABLES_VERSION, .size = IPT_ALIGN(0), .userspacesize = IPT_ALIGN(0), - .help = &help, - .parse = &parse, + .help = MIRROR_help, + .parse = MIRROR_parse, .print = NULL, .save = NULL, }; void _init(void) { - register_target(&mirror); + register_target(&mirror_target); } |