summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorosdl.net!shemminger <osdl.net!shemminger>2005-03-30 18:43:30 +0000
committerosdl.net!shemminger <osdl.net!shemminger>2005-03-30 18:43:30 +0000
commitb6d5f02e456b81c48809b2424f08741011623c24 (patch)
treebcf9c94cb02b448f59ed96ac23c77ce8518d51f2
parent00b583142212b70160fdf2449e95498b0f040c60 (diff)
(Logical change 1.181)
-rw-r--r--include/iptables.h22
-rw-r--r--include/iptables_common.h1
2 files changed, 23 insertions, 0 deletions
diff --git a/include/iptables.h b/include/iptables.h
index 5aca69a6..25f36aeb 100644
--- a/include/iptables.h
+++ b/include/iptables.h
@@ -4,10 +4,26 @@
#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
+#ifndef IPT_SO_GET_REVISION_MATCH /* Old kernel source. */
+#define IPT_SO_GET_REVISION_MATCH (IPT_BASE_CTL + 2)
+#define IPT_SO_GET_REVISION_TARGET (IPT_BASE_CTL + 3)
+
+struct ipt_get_revision
+{
+ char name[IPT_FUNCTION_MAXNAMELEN-1];
+
+ u_int8_t revision;
+};
+#endif /* IPT_SO_GET_REVISION_MATCH Old kernel source */
+
struct iptables_rule_match
{
struct iptables_rule_match *next;
@@ -22,6 +38,9 @@ struct iptables_match
ipt_chainlabel name;
+ /* Revision of match (0 by default). */
+ u_int8_t revision;
+
const char *version;
/* Size of match data. */
@@ -72,6 +91,9 @@ struct iptables_target
ipt_chainlabel name;
+ /* Revision of target (0 by default). */
+ u_int8_t revision;
+
const char *version;
/* Size of target data. */
diff --git a/include/iptables_common.h b/include/iptables_common.h
index e3b99aa2..ed5b9c06 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