diff options
Diffstat (limited to 'ip6tables-save.c')
-rw-r--r-- | ip6tables-save.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/ip6tables-save.c b/ip6tables-save.c index 11ef8c48..32b59926 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,18 +137,11 @@ int main(int argc, char *argv[]) int c; program_name = "ip6tables-save"; - program_version = XTABLES_VERSION; - - lib_dir = getenv("XTABLES_LIBDIR"); - if (lib_dir == NULL) { - lib_dir = getenv("IP6TABLES_LIB_DIR"); - if (lib_dir != NULL) - fprintf(stderr, "IP6TABLES_LIB_DIR is deprecated, " - "use XTABLES_LIBDIR.\n"); - } - if (lib_dir == NULL) - lib_dir = XTABLES_LIBDIR; + program_version = IPTABLES_VERSION; + xtables_program_name = program_name; + xtables_init(); + xtables_set_nfproto(NFPROTO_IPV6); #ifdef NO_SHARED_LIBS init_extensions(); #endif |