summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/ip6tables.h6
-rw-r--r--include/iptables.h6
-rw-r--r--include/iptables_common.h7
3 files changed, 19 insertions, 0 deletions
diff --git a/include/ip6tables.h b/include/ip6tables.h
index 9ac3835c..ca388f7c 100644
--- a/include/ip6tables.h
+++ b/include/ip6tables.h
@@ -51,6 +51,9 @@ struct ip6tables_match
struct ip6t_entry_match *m;
unsigned int mflags;
unsigned int used;
+#ifdef NO_SHARED_LIBS
+ unsigned int loaded; /* simulate loading so options are merged properly */
+#endif
};
struct ip6tables_target
@@ -98,6 +101,9 @@ struct ip6tables_target
struct ip6t_entry_target *t;
unsigned int tflags;
unsigned int used;
+#ifdef NO_SHARED_LIBS
+ unsigned int loaded; /* simulate loading so options are merged properly */
+#endif
};
/* Your shared library should call one of these. */
diff --git a/include/iptables.h b/include/iptables.h
index 719db544..ac2a6b3b 100644
--- a/include/iptables.h
+++ b/include/iptables.h
@@ -51,6 +51,9 @@ struct iptables_match
struct ipt_entry_match *m;
unsigned int mflags;
unsigned int used;
+#ifdef NO_SHARED_LIBS
+ unsigned int loaded; /* simulate loading so options are merged properly */
+#endif
};
struct iptables_target
@@ -98,6 +101,9 @@ struct iptables_target
struct ipt_entry_target *t;
unsigned int tflags;
unsigned int used;
+#ifdef NO_SHARED_LIBS
+ unsigned int loaded; /* simulate loading so options are merged properly */
+#endif
};
/* Your shared library should call one of these. */
diff --git a/include/iptables_common.h b/include/iptables_common.h
index dff849ee..12b57975 100644
--- a/include/iptables_common.h
+++ b/include/iptables_common.h
@@ -19,4 +19,11 @@ void exit_error(enum exittype, char *, ...)__attribute__((noreturn,
format(printf,2,3)));
extern const char *program_name, *program_version;
+#ifdef NO_SHARED_LIBS
+# ifdef _INIT
+# define _init _INIT
+# endif
+ extern void init_extensions(void);
+#endif
+
#endif /*_IPTABLES_COMMON_H*/