summaryrefslogtreecommitdiffstats
path: root/extensions/libipt_unclean.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2007-10-04 16:28:39 +0000
committerPatrick McHardy <kaber@trash.net>2007-10-04 16:28:39 +0000
commit59d164019340d110d302634e429320577f0db7be (patch)
tree69c2cb242bed3041027b2ac047b1214e13be48ce /extensions/libipt_unclean.c
parent932e648f38ac16b1ea14c1f66f23951388448c5a (diff)
Unique names 3/6
Give symbols of libxt matches 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_unclean.c')
-rw-r--r--extensions/libipt_unclean.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/extensions/libipt_unclean.c b/extensions/libipt_unclean.c
index 6b5bcbfc..648d0980 100644
--- a/extensions/libipt_unclean.c
+++ b/extensions/libipt_unclean.c
@@ -5,8 +5,7 @@
#include <iptables.h>
/* Function which prints out usage message. */
-static void
-help(void)
+static void unclean_help(void)
{
printf(
"unclean v%s takes no options\n"
@@ -15,25 +14,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 unclean_parse(int c, char **argv, int invert, unsigned int *flags,
+ const void *entry, struct xt_entry_match **match)
{
return 0;
}
-static
-struct iptables_match unclean = {
+static struct iptables_match unclean_match = {
.name = "unclean",
.version = IPTABLES_VERSION,
.size = IPT_ALIGN(0),
.userspacesize = IPT_ALIGN(0),
- .help = &help,
- .parse = &parse,
+ .help = unclean_help,
+ .parse = unclean_parse,
};
void _init(void)
{
- register_match(&unclean);
+ register_match(&unclean_match);
}