]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Heh, need to reserve space for FQDN option length also.
authorRoy Marples <roy@marples.name>
Thu, 7 Aug 2008 11:45:29 +0000 (11:45 +0000)
committerRoy Marples <roy@marples.name>
Thu, 7 Aug 2008 11:45:29 +0000 (11:45 +0000)
dhcpcd.h

index d3d98b1008b072c30476b46d4e1b2e9b3beb12cb..e8c378ff41ce81c7c49a10ff07b2e6a60d69e3fc 100644 (file)
--- a/dhcpcd.h
+++ b/dhcpcd.h
@@ -41,7 +41,7 @@
 #define DEFAULT_TIMEOUT                30
 #define DEFAULT_LEASETIME      3600    /* 1 hour */
 
-#define HOSTNAME_MAX_LEN       253     /* Initial len + trailing 0 for FQDN */
+#define HOSTNAME_MAX_LEN       250     /* 255 - 3 (FQDN) - 2 (DNS enc) */
 #define CLASSID_MAX_LEN                48
 #define CLIENTID_MAX_LEN       48
 #define USERCLASS_MAX_LEN      255