From 03462993f2b3428e14355ac646f0694609a8b2bf Mon Sep 17 00:00:00 2001 From: Bart De Schuymer Date: Sat, 25 Oct 2003 10:18:31 +0000 Subject: auto-detect 2.4 or 2.6 --- include/arptables.h | 2 ++ include/netfilter_arp.h | 6 +----- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'include') 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 */ -- cgit v1.2.3