File dhcpcd-3.2.3-clientid.diff of Package dhcpcd

--- config.h	2008-02-25 09:28:19.000000000 +0100
+++ config.h	2008-06-04 18:10:39.000000000 +0200
@@ -45,8 +45,9 @@
 /* We will auto create a DUID_LLT file if it doesn't exist.
  * 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. */
+ * See RFC 3315 for details on this. 
 #define ENABLE_DUID
+*/
 
 /* resolvconf is framework for multiple interfaces to manage resolv.conf */
 #define ENABLE_RESOLVCONF
--- client.c	2008-07-16 16:03:45.000000000 +0200
+++ client.	2008-07-16 16:06:50.000000000 +0200
@@ -375,7 +375,7 @@
 	if (*options->clientid) {
 		/* Attempt to see if the ClientID is a hardware address */
 		iface->clientid_len = hwaddr_aton (NULL, options->clientid);
-		if (iface->clientid_len) {
+		if (iface->clientid_len >= 6) {
 			iface->clientid = xmalloc (iface->clientid_len);
 			hwaddr_aton (iface->clientid, options->clientid);
 		} else {
openSUSE Build Service is sponsored by