From a1187fff744cf407c010fb52a482950d958dbf02 Mon Sep 17 00:00:00 2001 From: laforge Date: Mon, 6 Aug 2001 18:50:21 +0000 Subject: - added patch to support statically linking of iptables - iptables-save/-restore is no longer experimental --- include/ip6tables.h | 6 ++++++ include/iptables.h | 6 ++++++ include/iptables_common.h | 7 +++++++ 3 files changed, 19 insertions(+) (limited to 'include') diff --git a/include/ip6tables.h b/include/ip6tables.h index 9ac3835..ca388f7 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 719db54..ac2a6b3 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 dff849e..12b5797 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*/ -- cgit v1.2.3