diff options
| author | Roy Marples <roy@marples.name> | 2009-01-26 12:00:01 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2009-01-26 12:00:01 +0000 |
| commit | 9d9af32de8a952e1dd93f38206acea8fb18f48c8 (patch) | |
| tree | a20c9a63f130929b2e831380687c9302ac48f536 /if-options.h | |
| parent | 4fb0c27c39d95db8fd8d4da3a3fb552d79f20613 (diff) | |
| download | dhcpcd-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.h | 4 |
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]; |
