summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2003-09-14 21:14:46 +0000
committerBart De Schuymer <bdschuym@pandora.be>2003-09-14 21:14:46 +0000
commit608e6c29c11c6f6888571bd5054f6501e5961d81 (patch)
tree6a5effa45a89b0b2bf54b8be5bb181152a514991
parentc74a681b978d0843b74ea6810f50272d17a61993 (diff)
userspace needs a slightly altered copy
-rw-r--r--include/netfilter_arp.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/netfilter_arp.h b/include/netfilter_arp.h
new file mode 100644
index 0000000..2c98a81
--- /dev/null
+++ b/include/netfilter_arp.h
@@ -0,0 +1,26 @@
+#ifndef __LINUX_ARP_NETFILTER_H
+#define __LINUX_ARP_NETFILTER_H
+
+/* Userspace specific header file since 2.4 only has 2 chains */
+
+/* ARP-specific defines for netfilter.
+ * (C)2002 Rusty Russell IBM -- This code is GPL.
+ */
+
+#include <linux/config.h>
+#include <linux/netfilter.h>
+
+/* There is no PF_ARP. */
+#define NF_ARP 0
+
+/* ARP Hooks */
+#define NF_ARP_IN 0
+#define NF_ARP_OUT 1
+#ifndef KERNEL_2_4
+#define NF_ARP_FORWARD 2
+#define NF_ARP_NUMHOOKS 3
+#else
+#define NF_ARP_NUMHOOKS 2
+#endif
+
+#endif /* __LINUX_ARP_NETFILTER_H */