Bug 34728

Summary: DHCP hostname set as Hexadecimal string
Product: Base System Reporter: satherrl <satherrl>
Component: binAssignee: Doug Barton <dougb>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.5-STABLE   
Hardware: Any   
OS: Any   

Description satherrl 2002-02-08 05:10:01 UTC
DHCP client wants to set the hostname to a hex (xx:xx:...) string.

Fix: 

in /usr/src/contrib/isc-dhcp/common/tables.c

change "host-name", "X"
to "host-name", "t"
How-To-Repeat: within /etc/rc.conf on the client

ifconfig_interface0="DHCP"


within /usr/local/etc/dhcpd.conf

get-lease-hostnames true;

and so on...
Comment 1 Murray Stokely freebsd_committer freebsd_triage 2002-03-28 11:35:54 UTC
State Changed
From-To: open->feedback

I don't think this is necessary. 

The comment at the top of that file says that a value of 'X' means 
that the client will print in hex only if the hostname is 
non-printable ASCII characters.  What value is the DHCP server trying 
to return to the client?  It sounds like the DHCP server is sending a 
corrupted host name or something. 



Comment 2 Murray Stokely freebsd_committer freebsd_triage 2002-03-28 11:35:54 UTC
Responsible Changed
From-To: freebsd-bugs->murray

I'm working on DHCP in FreeBSD.
Comment 3 satherrl 2002-04-01 13:26:12 UTC
>The comment at the top of that file says that a value of 'X' means 
>that the client will print in hex only if the hostname is 
>non-printable ASCII characters.  What value is the DHCP server trying 
>to return to the client?  It sounds like the DHCP server is sending a 
>corrupted host name or something. 

err - no.
its been a while but.

pretty_print_option() just picks out the X and dumps the line in XX:XX... :XX 
format

write_client_lease() picks out the hostname and writes it via 
pretty_print_option() - no check is done for its validity

the dhclient-script picks out the XX:XX:XX...XX hostname

a packet sniffer revealed a syntactically correct reply from both 
dhcpd/FreeBSD and from an NT box
Comment 4 Murray Stokely freebsd_committer freebsd_triage 2005-03-18 02:35:28 UTC
State Changed
From-To: feedback->open

I am no longer maintaining DHCP.  Maybe this was fixed in 3.0.1? 



Comment 5 Murray Stokely freebsd_committer freebsd_triage 2005-03-18 02:35:28 UTC
Responsible Changed
From-To: murray->bugs

I am no longer maintaining DHCP.  Maybe this was fixed in 3.0.1?
Comment 6 Mark Linimon freebsd_committer freebsd_triage 2005-03-21 12:23:55 UTC
Responsible Changed
From-To: bugs->freebsd-bugs

Canonicalize assignment.
Comment 7 Doug Barton freebsd_committer freebsd_triage 2011-07-07 08:03:55 UTC
State Changed
From-To: open->closed


1. Old, unsupported FreeBSD version 
2. Likely OBE 


Comment 8 Doug Barton freebsd_committer freebsd_triage 2011-07-07 08:03:55 UTC
Responsible Changed
From-To: freebsd-bugs->dougb


I closed it