diff options
author | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=gandalf/emailAddress=gandalf@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=gandalf/emailAddress=gandalf@netfilter.org> | 2004-12-27 19:49:28 +0000 |
---|---|---|
committer | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=gandalf/emailAddress=gandalf@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=gandalf/emailAddress=gandalf@netfilter.org> | 2004-12-27 19:49:28 +0000 |
commit | 5274b478e6898d79dd021e5d9a5289cb497d4773 (patch) | |
tree | 9bb6930f2d5d2398e4ccc1ef6dd7d7539d8ff7ef /include | |
parent | bb05984cd30d618b41e8774a28e5d88f812977b8 (diff) |
Fix setting lib_dir in ip*tables-{save,restore}
Diffstat (limited to 'include')
-rw-r--r-- | include/ip6tables.h | 4 | ||||
-rw-r--r-- | include/iptables.h | 4 | ||||
-rw-r--r-- | include/iptables_common.h | 1 |
3 files changed, 9 insertions, 0 deletions
diff --git a/include/ip6tables.h b/include/ip6tables.h index 8360617..d4dadd8 100644 --- a/include/ip6tables.h +++ b/include/ip6tables.h @@ -4,6 +4,10 @@ #include "iptables_common.h" #include "libiptc/libip6tc.h" +#ifndef IP6T_LIB_DIR +#define IP6T_LIB_DIR "/usr/local/lib/iptables" +#endif + struct ip6tables_rule_match { struct ip6tables_rule_match *next; diff --git a/include/iptables.h b/include/iptables.h index 5aca69a..6d997f7 100644 --- a/include/iptables.h +++ b/include/iptables.h @@ -4,6 +4,10 @@ #include "iptables_common.h" #include "libiptc/libiptc.h" +#ifndef IPT_LIB_DIR +#define IPT_LIB_DIR "/usr/local/lib/iptables" +#endif + #ifndef IPPROTO_SCTP #define IPPROTO_SCTP 132 #endif diff --git a/include/iptables_common.h b/include/iptables_common.h index ca65594..db5e93f 100644 --- a/include/iptables_common.h +++ b/include/iptables_common.h @@ -26,6 +26,7 @@ extern int iptables_insmod(const char *modname, const char *modprobe); void exit_error(enum exittype, char *, ...)__attribute__((noreturn, format(printf,2,3))); extern const char *program_name, *program_version; +extern char *lib_dir; #ifdef NO_SHARED_LIBS # ifdef _INIT |