summaryrefslogtreecommitdiffstats
path: root/config.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-05-29 08:26:57 +0000
committerRoy Marples <roy@marples.name>2008-05-29 08:26:57 +0000
commit26b48f9559fc47a3c98372c9ccf3a2789e67ab5c (patch)
treeed95eff859adb2aa65b357d69ddee8c680195dac /config.h
parent0cf4412b26de07d366292cb9f6ef02caaa7ac245 (diff)
downloaddhcpcd-26b48f9559fc47a3c98372c9ccf3a2789e67ab5c.tar.xz
DISABLE_FEATURE defines now don't enable automatic ENABLE_FEATURE defines.
Diffstat (limited to 'config.h')
-rw-r--r--config.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/config.h b/config.h
index 4415b89c..0198d55a 100644
--- a/config.h
+++ b/config.h
@@ -33,11 +33,17 @@
/* You can enable/disable various chunks of optional code here.
* You would only do this to try and shrink the end binary if dhcpcd
* was running on a low memory device */
-#define ENABLE_ARP
+#ifndef DISABLE_ARP
+# define ENABLE_ARP
+#endif
/* IPV4LL, aka ZeroConf, aka APIPA, aka RFC 3927.
* Needs ARP. */
-#define ENABLE_IPV4LL
+#ifndef DISABLE_IPV4LL
+# ifdef ENABLE_ARP
+# define ENABLE_IPV4LL
+# endif
+#endif
/*
* By default we don't add a local link route if we got a routeable address.
@@ -54,7 +60,9 @@
* You can always create your own DUID file that just contains the
* hex string that represents the DUID.
* See RFC 3315 for details on this. */
-#define ENABLE_DUID
+#ifndef DISABLE_DUID
+# define ENABLE_DUID
+#endif
/* Some systems do not have a working fork. */
/* #define THERE_IS_NO_FORK */