summaryrefslogtreecommitdiffstats
path: root/userspace/arptables/include
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2003-10-25 10:18:31 +0000
committerBart De Schuymer <bdschuym@pandora.be>2003-10-25 10:18:31 +0000
commit701ac743a858af2bc34828d7c135d93a29a2c6ff (patch)
tree2fce1844fda2c4f5edf1e8128d839465c1c34c78 /userspace/arptables/include
parent23f91968fd615abaef134d5fa5170c02e0473a78 (diff)
auto-detect 2.4 or 2.6
Diffstat (limited to 'userspace/arptables/include')
-rw-r--r--userspace/arptables/include/arptables.h2
-rw-r--r--userspace/arptables/include/netfilter_arp.h6
2 files changed, 3 insertions, 5 deletions
diff --git a/userspace/arptables/include/arptables.h b/userspace/arptables/include/arptables.h
index 820b664..ed4a549 100644
--- a/userspace/arptables/include/arptables.h
+++ b/userspace/arptables/include/arptables.h
@@ -115,6 +115,8 @@ struct arptables_target
unsigned int loaded; /* simulate loading so options are merged properly */
};
+extern int NF_ARP_NUMHOOKS; /* boy, this is dirty */
+
/* Your shared library should call one of these. */
extern void register_match(struct arptables_match *me);
extern void register_target(struct arptables_target *me);
diff --git a/userspace/arptables/include/netfilter_arp.h b/userspace/arptables/include/netfilter_arp.h
index 2c98a81..aaf0866 100644
--- a/userspace/arptables/include/netfilter_arp.h
+++ b/userspace/arptables/include/netfilter_arp.h
@@ -16,11 +16,7 @@
/* 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
+extern int NF_ARP_NUMHOOKS; /* boy, this is dirty */
#endif /* __LINUX_ARP_NETFILTER_H */