diff options
author | Patrick McHardy <kaber@trash.net> | 2009-02-09 18:58:45 +0100 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2009-02-09 18:58:45 +0100 |
commit | 300e2909ba4714abc6093cba0ed860708282bd3e (patch) | |
tree | 545c79c9fcbe036db503e50a3643acb3d5ff088d /ip6tables-standalone.c | |
parent | 9cfc59f71f83ee97c4513fd340acf1e45073562b (diff) | |
parent | 1eb619f3a0508d62847c311e69a09f4a8534c4df (diff) |
Merge branch 'master' of git://dev.medozas.de/iptables
Diffstat (limited to 'ip6tables-standalone.c')
-rw-r--r-- | ip6tables-standalone.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/ip6tables-standalone.c b/ip6tables-standalone.c index f4b1f18f..cea48186 100644 --- a/ip6tables-standalone.c +++ b/ip6tables-standalone.c @@ -50,18 +50,11 @@ main(int argc, char *argv[]) struct ip6tc_handle *handle = NULL; program_name = "ip6tables"; - 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 |