bin/83468: imported OpenBSD dhclient handles hostnames
differently to ISC DHCP 3 - come through as hex
Brooks Davis
brooks at one-eyed-alien.net
Fri Jul 15 17:42:25 GMT 2005
It seem likely the proposed patch breaks options that should be in hex
(after all, 0x00 is perfectly valid as the last character in a MAC
addrss or similar.) Please try the following change instead.
Thanks,
Brooks
Index: tables.c
===================================================================
RCS file: /usr/cvs/src/sbin/dhclient/tables.c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 tables.c
--- tables.c 7 Jun 2005 04:05:09 -0000 1.1.1.1
+++ tables.c 15 Jul 2005 17:35:49 -0000
@@ -74,7 +74,7 @@ struct option dhcp_options[256] = {
{ "lpr-servers", "IA", &dhcp_universe, 9 },
{ "impress-servers", "IA", &dhcp_universe, 10 },
{ "resource-location-servers", "IA", &dhcp_universe, 11 },
- { "host-name", "X", &dhcp_universe, 12 },
+ { "host-name", "t", &dhcp_universe, 12 },
{ "boot-size", "S", &dhcp_universe, 13 },
{ "merit-dump", "t", &dhcp_universe, 14 },
{ "domain-name", "t", &dhcp_universe, 15 },
--
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-bugs/attachments/20050715/7c89c993/attachment.bin
More information about the freebsd-bugs
mailing list