summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/arptables.h2
-rw-r--r--include/netfilter_arp.h6
2 files changed, 3 insertions, 5 deletions
diff --git a/include/arptables.h b/include/arptables.h
index 820b664..ed4a549 100644
--- a/include/arptables.h
+++ b/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/include/netfilter_arp.h b/include/netfilter_arp.h
index 2c98a81..aaf0866 100644
--- a/include/netfilter_arp.h
+++ b/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 */