diff options
Diffstat (limited to 'ip6tables-restore.c')
-rw-r--r-- | ip6tables-restore.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/ip6tables-restore.c b/ip6tables-restore.c index 097711f3..acaf97b4 100644 --- a/ip6tables-restore.c +++ b/ip6tables-restore.c @@ -127,19 +127,12 @@ int main(int argc, char *argv[]) int in_table = 0, testing = 0; program_name = "ip6tables-restore"; - program_version = XTABLES_VERSION; + program_version = IPTABLES_VERSION; line = 0; - 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; - + xtables_program_name = program_name; + xtables_init(); + xtables_set_nfproto(NFPROTO_IPV6); #ifdef NO_SHARED_LIBS init_extensions(); #endif @@ -160,7 +153,7 @@ int main(int argc, char *argv[]) break; case 'h': print_usage("ip6tables-restore", - XTABLES_VERSION); + IPTABLES_VERSION); break; case 'n': noflush = 1; |