summaryrefslogtreecommitdiffstats
path: root/if-options.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-01-26 12:00:01 +0000
committerRoy Marples <roy@marples.name>2009-01-26 12:00:01 +0000
commit9d9af32de8a952e1dd93f38206acea8fb18f48c8 (patch)
treea20c9a63f130929b2e831380687c9302ac48f536 /if-options.h
parent4fb0c27c39d95db8fd8d4da3a3fb552d79f20613 (diff)
downloaddhcpcd-9d9af32de8a952e1dd93f38206acea8fb18f48c8.tar.xz
We should only send short hostnames as qualfied ones confuse ISC DHCP server. If a FQDN is required, then use that option instead of the hostname.
Diffstat (limited to 'if-options.h')
-rw-r--r--if-options.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/if-options.h b/if-options.h
index 5a8b8aaf..02f5f2dc 100644
--- a/if-options.h
+++ b/if-options.h
@@ -88,8 +88,8 @@ struct if_options {
char **environ;
char script[PATH_MAX];
-
- char hostname[HOSTNAME_MAX_LEN + 2];
+
+ char hostname[HOSTNAME_MAX_LEN + 1]; /* We don't store the lenth */
int fqdn;
uint8_t vendorclassid[VENDORCLASSID_MAX_LEN + 2];
char clientid[CLIENTID_MAX_LEN + 2];