summaryrefslogtreecommitdiffstats
path: root/dhcp.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-08-06 21:37:34 +0000
committerRoy Marples <roy@marples.name>2008-08-06 21:37:34 +0000
commit0bdf7a9499e336a8c59fa5f918a7e805e7291fbc (patch)
tree484cd615f093fa2765326bfe3ce2cb846f806952 /dhcp.c
parente59e7d4251218e3cab62897dc699eb6b04273eba (diff)
downloaddhcpcd-0bdf7a9499e336a8c59fa5f918a7e805e7291fbc.tar.xz
Attempt to fix FQDN encoding.
Diffstat (limited to 'dhcp.c')
-rw-r--r--dhcp.c3
1 files changed, 2 insertions, 1 deletions
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;
}
}