diff options
| author | Roy Marples <roy@marples.name> | 2008-08-06 21:37:34 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2008-08-06 21:37:34 +0000 |
| commit | 0bdf7a9499e336a8c59fa5f918a7e805e7291fbc (patch) | |
| tree | 484cd615f093fa2765326bfe3ce2cb846f806952 /dhcp.c | |
| parent | e59e7d4251218e3cab62897dc699eb6b04273eba (diff) | |
| download | dhcpcd-0bdf7a9499e336a8c59fa5f918a7e805e7291fbc.tar.xz | |
Attempt to fix FQDN encoding.
Diffstat (limited to 'dhcp.c')
| -rw-r--r-- | dhcp.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -834,7 +834,7 @@ make_message(struct dhcp_message **message, } else { /* Draft IETF DHC-FQDN option (81) */ *p++ = DHCP_FQDN; - *p++ = options->hostname[0] + 4; + *p++ = options->hostname[0] + 5; /* * Flags: 0000NEOS * S: 1 => Client requests Server to update @@ -859,6 +859,7 @@ make_message(struct dhcp_message **message, *p++ = (uint8_t) *c; c++; } + *d = p - d - 1; *p++ = 0; } } |
