summaryrefslogtreecommitdiffstats
path: root/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
commitdb5ae6e9d6c0b775ac1b90c31cb64f939cb3c4d9 (patch)
tree212379ad079b83e20d1af5dd03c903ca943042b3 /arptables.c
parent00ea348b53ff619409b4281f5f89cd449874a11e (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 'arptables.c')
-rw-r--r--arptables.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arptables.c b/arptables.c
index 225f36a..b10361f 100644
--- a/arptables.c
+++ b/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,