summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorYasuyuki KOZAKAI <yasuyuki@netfilter.org>2007-07-24 05:55:12 +0000
committerYasuyuki KOZAKAI <yasuyuki@netfilter.org>2007-07-24 05:55:12 +0000
commit5cd1ff53a500256997519ec1d871750773c44803 (patch)
tree54a3e393b567200f07ca377eb8f5c615a714c6f0 /include
parent04f8c54dc52e19096d31d94593bd1040716afe4d (diff)
Moves IPPROTO_* and IP[6]T_LIB_DIR definitions to xtables.h
Diffstat (limited to 'include')
-rw-r--r--include/ip6tables.h12
-rw-r--r--include/iptables.h12
-rw-r--r--include/xtables.h14
3 files changed, 16 insertions, 22 deletions
diff --git a/include/ip6tables.h b/include/ip6tables.h
index 90e32836..b0de395d 100644
--- a/include/ip6tables.h
+++ b/include/ip6tables.h
@@ -7,17 +7,7 @@
#include "libiptc/libip6tc.h"
#ifndef IP6T_LIB_DIR
-#define IP6T_LIB_DIR "/usr/local/lib/iptables"
-#endif
-
-#ifndef IPPROTO_SCTP
-#define IPPROTO_SCTP 132
-#endif
-#ifndef IPPROTO_DCCP
-#define IPPROTO_DCCP 33
-#endif
-#ifndef IPPROTO_UDPLITE
-#define IPPROTO_UDPLITE 136
+#define IP6T_LIB_DIR XT_LIB_DIR
#endif
#ifndef IP6T_SO_GET_REVISION_MATCH /* Old kernel source. */
diff --git a/include/iptables.h b/include/iptables.h
index 1f929772..83b7363b 100644
--- a/include/iptables.h
+++ b/include/iptables.h
@@ -6,17 +6,7 @@
#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 IPPROTO_DCCP
-#define IPPROTO_DCCP 33
-#endif
-#ifndef IPPROTO_UDPLITE
-#define IPPROTO_UDPLITE 136
+#define IPT_LIB_DIR XT_LIB_DIR
#endif
#ifndef IPT_SO_GET_REVISION_MATCH /* Old kernel source. */
diff --git a/include/xtables.h b/include/xtables.h
index 5ae30014..43de25ce 100644
--- a/include/xtables.h
+++ b/include/xtables.h
@@ -5,6 +5,20 @@
#include <linux/netfilter/x_tables.h>
#include <libiptc/libxtc.h>
+#ifndef XT_LIB_DIR
+#define XT_LIB_DIR "/usr/local/lib/iptables"
+#endif
+
+#ifndef IPPROTO_SCTP
+#define IPPROTO_SCTP 132
+#endif
+#ifndef IPPROTO_DCCP
+#define IPPROTO_DCCP 33
+#endif
+#ifndef IPPROTO_UDPLITE
+#define IPPROTO_UDPLITE 136
+#endif
+
/* protocol family dependent informations */
struct afinfo {
/* protocol family */