From 0a0a8dbc129729e0028b64b2e9cc8f099f13c4dd 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:27:07 +0000 Subject: [PATCH 07/13] Unique symbols 1/6 Give symbols of libxt matches unique names (1/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/libxt_connlimit.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'extensions/libxt_connlimit.c') diff --git a/extensions/libxt_connlimit.c b/extensions/libxt_connlimit.c index 434eab2..1b86d6e 100644 --- a/extensions/libxt_connlimit.c +++ b/extensions/libxt_connlimit.c @@ -178,7 +178,7 @@ static void connlimit_save6(const void *ip, const struct xt_entry_match *match) count_bits6(info->v6_mask)); } -static struct xtables_match connlimit_reg4 = { +static struct xtables_match connlimit_match = { .name = "connlimit", .family = AF_INET, .version = IPTABLES_VERSION, @@ -193,7 +193,7 @@ static struct xtables_match connlimit_reg4 = { .extra_opts = connlimit_opts, }; -static struct xtables_match connlimit_reg6 = { +static struct xtables_match connlimit_match6 = { .name = "connlimit", .family = AF_INET6, .version = IPTABLES_VERSION, @@ -210,6 +210,6 @@ static struct xtables_match connlimit_reg6 = { void _init(void) { - xtables_register_match(&connlimit_reg4); - xtables_register_match(&connlimit_reg6); + xtables_register_match(&connlimit_match); + xtables_register_match(&connlimit_match6); } -- cgit v1.2.3