From: Roy Marples Date: Wed, 6 Aug 2008 21:37:34 +0000 (+0000) Subject: Attempt to fix FQDN encoding. X-Git-Tag: v4.0.2~81 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bdf7a9499e336a8c59fa5f918a7e805e7291fbc;p=thirdparty%2Fdhcpcd.git Attempt to fix FQDN encoding. --- diff --git a/dhcp.c b/dhcp.c index 58d1628b..1ad19c03 100644 --- a/dhcp.c +++ b/dhcp.c @@ -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; } }