summaryrefslogtreecommitdiffstats
path: root/iptables-standalone.c
diff options
context:
space:
mode:
Diffstat (limited to 'iptables-standalone.c')
-rw-r--r--iptables-standalone.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/iptables-standalone.c b/iptables-standalone.c
index 3f2432fe..ece7cf42 100644
--- a/iptables-standalone.c
+++ b/iptables-standalone.c
@@ -51,18 +51,11 @@ main(int argc, char *argv[])
struct iptc_handle *handle = NULL;
program_name = "iptables";
- program_version = XTABLES_VERSION;
-
- lib_dir = getenv("XTABLES_LIBDIR");
- if (lib_dir == NULL) {
- lib_dir = getenv("IPTABLES_LIB_DIR");
- if (lib_dir != NULL)
- fprintf(stderr, "IPTABLES_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_IPV4);
#ifdef NO_SHARED_LIBS
init_extensions();
#endif