diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2003-12-30 17:29:23 +0000 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2003-12-30 17:29:23 +0000 |
commit | 8866448fc89fa185fbad13a7741414846f6a70dd (patch) | |
tree | 267f32e2236e8600feeccaad9bb8930d6b1abad9 /userspace/arptables/include | |
parent | 5da03759003eb649b6577a3a8855263b571f29a3 (diff) |
Riccardo Murri <murri_at_dmmm.uniroma1.it>: introduce RUNTIME_NF_ARP_NUMHOOKS so arptables can be compiled straight from CVS + add DESTDIR option
Diffstat (limited to 'userspace/arptables/include')
-rw-r--r-- | userspace/arptables/include/arptables.h | 2 | ||||
-rw-r--r-- | userspace/arptables/include/libarptc/libarptc.h | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/userspace/arptables/include/arptables.h b/userspace/arptables/include/arptables.h index ed4a549..820b664 100644 --- a/userspace/arptables/include/arptables.h +++ b/userspace/arptables/include/arptables.h @@ -115,8 +115,6 @@ 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/libarptc/libarptc.h b/userspace/arptables/include/libarptc/libarptc.h index b7d3d36..e4f1175 100644 --- a/userspace/arptables/include/libarptc/libarptc.h +++ b/userspace/arptables/include/libarptc/libarptc.h @@ -21,6 +21,11 @@ typedef char arpt_chainlabel[32]; #define ARPTC_LABEL_QUEUE "QUEUE" #define ARPTC_LABEL_RETURN "RETURN" + +/* NF_ARP_NUMHOOKS is different on 2.4 and 2.6; hack to support both */ +extern int RUNTIME_NF_ARP_NUMHOOKS; /* boy, this is dirty */ + + /* Transparent handle type. */ typedef struct arptc_handle *arptc_handle_t; |