summaryrefslogtreecommitdiffstats
path: root/config.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-06-30 16:02:56 +0000
committerRoy Marples <roy@marples.name>2008-06-30 16:02:56 +0000
commit757520c586a98cdea4e1ef571cd9e448f9f9c72b (patch)
treea78240510356ea585feab8d8c5cfb39b3b6b4d39 /config.h
parenta72cb83891d74115890ee40761d4cd6e87cbf689 (diff)
downloaddhcpcd-757520c586a98cdea4e1ef571cd9e448f9f9c72b.tar.xz
Add support for vendor encapsulated options. Also, MINIAL define now disables all configurable options.
Diffstat (limited to 'config.h')
-rw-r--r--config.h26
1 files changed, 25 insertions, 1 deletions
diff --git a/config.h b/config.h
index 3f2b1664..eb4e90a2 100644
--- a/config.h
+++ b/config.h
@@ -33,6 +33,24 @@
/* 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 */
+
+/* Disable everything we possibly can. */
+#ifdef MINIMAL
+# ifndef DISABLE_ARP
+# define DISABLE_ARP
+# endif
+# ifndef DISABLE_IPV4LL
+# define DISABLE_IPV4LL
+# endif
+# ifndef DISABLE_DUID
+# define DISABLE_DUID
+# endif
+# ifndef DISABLE_VENDOR
+# define DISABLE_VENDOR
+# endif
+#endif
+
+/* Enable ARP by default. */
#ifndef DISABLE_ARP
# define ENABLE_ARP
#endif
@@ -64,6 +82,13 @@
# define ENABLE_DUID
#endif
+/* Allow dhcpcd to send encapsulated vendor options (code 43).
+ * Although this is enabled by default, only custom networks would really
+ * need it. */
+#ifndef DISABLE_VENDOR
+# define ENABLE_VENDOR
+#endif
+
/* Some systems do not have a working fork. */
/* #define THERE_IS_NO_FORK */
@@ -97,5 +122,4 @@
# define PIDFILE RUNDIR "/" PACKAGE "-%s.pid"
#endif
-
#endif