summaryrefslogtreecommitdiffstats
path: root/userspace/arptables/arptables.c
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2003-12-30 17:29:23 +0000
committerBart De Schuymer <bdschuym@pandora.be>2003-12-30 17:29:23 +0000
commit8866448fc89fa185fbad13a7741414846f6a70dd (patch)
tree267f32e2236e8600feeccaad9bb8930d6b1abad9 /userspace/arptables/arptables.c
parent5da03759003eb649b6577a3a8855263b571f29a3 (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/arptables.c')
-rw-r--r--userspace/arptables/arptables.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/userspace/arptables/arptables.c b/userspace/arptables/arptables.c
index 225f36a..b10361f 100644
--- a/userspace/arptables/arptables.c
+++ b/userspace/arptables/arptables.c
@@ -154,7 +154,7 @@ static struct option original_opts[] = {
{ 0 }
};
-int NF_ARP_NUMHOOKS = 3;
+int RUNTIME_NF_ARP_NUMHOOKS = 3;
/*#ifndef __OPTIMIZE__
struct arpt_entry_target *
@@ -1785,7 +1785,8 @@ int do_command(int argc, char *argv[], char **table, arptc_handle_t *handle)
arptables_insmod("arp_tables", modprobe);
*handle = arptc_init(*table);
if (!*handle) {
- NF_ARP_NUMHOOKS = 2;
+ /* 2.4 kernel: NF_ARP_NUMHOOKS = 2 */
+ RUNTIME_NF_ARP_NUMHOOKS = 2;
*handle = arptc_init(*table);
if (!*handle) {
exit_error(VERSION_PROBLEM,