netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [ebtables-compat PATCH 1/2] libxtables: search first for AF-specific extension
@ 2015-01-29 16:44 Arturo Borrero Gonzalez
  2015-01-29 16:44 ` [ebtables-compat PATCH 2/2] ebtables-compat: add mark target extension Arturo Borrero Gonzalez
  2015-01-30 18:45 ` [ebtables-compat PATCH 1/2] libxtables: search first for AF-specific extension Pablo Neira Ayuso
  0 siblings, 2 replies; 6+ messages in thread
From: Arturo Borrero Gonzalez @ 2015-01-29 16:44 UTC (permalink / raw)
  To: netfilter-devel; +Cc: pablo

There are some extension which may name-clash, for example:
 * libxt_mark.so
 * liebt_mark.so

Let's search first for AF-specific extension and then for the generic libxt_**.

Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
---
 libxtables/xtables.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libxtables/xtables.c b/libxtables/xtables.c
index 6985a27..16e4d96 100644
--- a/libxtables/xtables.c
+++ b/libxtables/xtables.c
@@ -549,7 +549,7 @@ void xtables_parse_interface(const char *arg, char *vianame,
 static void *load_extension(const char *search_path, const char *af_prefix,
     const char *name, bool is_target)
 {
-	const char *all_prefixes[] = {"libxt_", af_prefix, NULL};
+	const char *all_prefixes[] = {af_prefix, "libxt_", NULL};
 	const char **prefix;
 	const char *dir = search_path, *next;
 	void *ptr = NULL;


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-02-03 15:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-29 16:44 [ebtables-compat PATCH 1/2] libxtables: search first for AF-specific extension Arturo Borrero Gonzalez
2015-01-29 16:44 ` [ebtables-compat PATCH 2/2] ebtables-compat: add mark target extension Arturo Borrero Gonzalez
2015-01-29 17:02   ` Pablo Neira Ayuso
2015-01-30 18:51   ` Pablo Neira Ayuso
2015-02-03 15:21     ` Arturo Borrero Gonzalez
2015-01-30 18:45 ` [ebtables-compat PATCH 1/2] libxtables: search first for AF-specific extension Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).