summaryrefslogtreecommitdiffstats
path: root/config.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-06-30 16:27:15 +0000
committerRoy Marples <roy@marples.name>2008-06-30 16:27:15 +0000
commit413724d05e63d58a28a9a26d415d30e01c8b749d (patch)
tree012960749bc55a576c6385329be10c29480d3cab /config.h
parent79f58b5d886cef4a517845062d5ba1aaae9ef421 (diff)
downloaddhcpcd-413724d05e63d58a28a9a26d415d30e01c8b749d.tar.xz
Allow clientid to be configured.
Diffstat (limited to 'config.h')
-rw-r--r--config.h30
1 files changed, 20 insertions, 10 deletions
diff --git a/config.h b/config.h
index 68846f51..39c0310d 100644
--- a/config.h
+++ b/config.h
@@ -39,6 +39,9 @@
# ifndef DISABLE_ARP
# define DISABLE_ARP
# endif
+# ifndef DISABLE_CLIENTID
+# define DISABLE_CLIENTID
+# endif
# ifndef DISABLE_IPV4LL
# define DISABLE_IPV4LL
# endif
@@ -58,6 +61,23 @@
# define ENABLE_ARP
#endif
+/* Send a ClientID in all messages. */
+#ifndef DISABLE_CLIENTID
+# define ENABLE_CLIENTID
+#endif
+
+/* Allow dhcpcd to create a DUID (LLT) and use it to make an IAID for the
+ * ClientID. Even enabled here, we need a config directive to actually use it
+ * so this toggle is just to remove it from dhcpcd to make the binary smaller.
+ * 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. */
+#ifndef DISABLE_DUID
+# ifdef ENABLE_CLIENTID
+# define ENABLE_DUID
+# endif
+#endif
+
/* IPV4LL, aka ZeroConf, aka APIPA, aka RFC 3927.
* Needs ARP. */
#ifndef DISABLE_IPV4LL
@@ -75,16 +95,6 @@
*/
// #define ENABLE_IPV4LL_ALWAYSROUTE
-/* Allow dhcpcd to create a DUID (LLT) and use it to make an IAID for the
- * ClientID. Even enabled here, we need a config directive to actually use it
- * so this toggle is just to remove it from dhcpcd to make the binary smaller.
- * 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. */
-#ifndef DISABLE_DUID
-# define ENABLE_DUID
-#endif
-
/* Allow dhcpcd to send user class options. */
#ifndef DISABLE_USERCLASS
# define ENABLE_USERCLASS