summaryrefslogtreecommitdiffstats
path: root/dhcpcd.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-08-07 11:45:29 +0000
committerRoy Marples <roy@marples.name>2008-08-07 11:45:29 +0000
commitbe3c2740b76e1e59fa46ce0152c6c6eda1525917 (patch)
treeec98c8660b7163adcf2b99dbeb3b34cdb7f4af9d /dhcpcd.h
parentaf94aa169458928a6cd681b0b46a50ed01cc77d8 (diff)
downloaddhcpcd-be3c2740b76e1e59fa46ce0152c6c6eda1525917.tar.xz
Heh, need to reserve space for FQDN option length also.
Diffstat (limited to 'dhcpcd.h')
-rw-r--r--dhcpcd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpcd.h b/dhcpcd.h
index d3d98b10..e8c378ff 100644
--- 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