From dacafa55379fd98212031d8c559096c91d7ce93b Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 27 Jan 2009 20:56:23 +0100 Subject: libxtables: prefix/order - program_name Split XTABLES_VERSION into xtables and iptables, and encode the xtables soversion into the extensions instead. This makes it possible to upgrade iptables without having to recompile 3rd-party extensions (if the libxtables version matches, of course). Signed-off-by: Jan Engelhardt --- iptables-standalone.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'iptables-standalone.c') diff --git a/iptables-standalone.c b/iptables-standalone.c index c06b2862..91908732 100644 --- a/iptables-standalone.c +++ b/iptables-standalone.c @@ -51,8 +51,9 @@ main(int argc, char *argv[]) struct iptc_handle *handle = NULL; program_name = "iptables"; - program_version = XTABLES_VERSION; + program_version = IPTABLES_VERSION; + xtables_program_name = program_name; xtables_init(); #ifdef NO_SHARED_LIBS init_extensions(); -- cgit v1.2.3