diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2009-01-27 20:56:23 +0100 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2009-01-30 03:27:42 +0100 |
commit | dacafa55379fd98212031d8c559096c91d7ce93b (patch) | |
tree | 9a2e6dd3eda76dbcc22d6c74377889bca7223c41 /ip6tables-save.c | |
parent | 5f2922cfc0bbfbeb878f5c12e9fb3eb602ae5507 (diff) |
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 <jengelh@medozas.de>
Diffstat (limited to 'ip6tables-save.c')
-rw-r--r-- | ip6tables-save.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ip6tables-save.c b/ip6tables-save.c index 1b9d00ae..86ec6b26 100644 --- a/ip6tables-save.c +++ b/ip6tables-save.c @@ -76,7 +76,7 @@ static int do_output(const char *tablename) time_t now = time(NULL); printf("# Generated by ip6tables-save v%s on %s", - XTABLES_VERSION, ctime(&now)); + IPTABLES_VERSION, ctime(&now)); printf("*%s\n", tablename); /* Dump out chain names first, @@ -137,8 +137,9 @@ int main(int argc, char *argv[]) int c; program_name = "ip6tables-save"; - program_version = XTABLES_VERSION; + program_version = IPTABLES_VERSION; + xtables_program_name = program_name; xtables_init(); #ifdef NO_SHARED_LIBS init_extensions(); |