diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2003-10-25 10:18:31 +0000 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2003-10-25 10:18:31 +0000 |
commit | 03462993f2b3428e14355ac646f0694609a8b2bf (patch) | |
tree | ae1d2fe6db5d83e6051646f9cbd79de143cee470 /include | |
parent | 1b0d70ec5ea0e2320a7c4071486099e70a0036d2 (diff) |
auto-detect 2.4 or 2.6
Diffstat (limited to 'include')
-rw-r--r-- | include/arptables.h | 2 | ||||
-rw-r--r-- | include/netfilter_arp.h | 6 |
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 */ |