From nobody@FreeBSD.org  Thu Feb  7 21:04:58 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 083AA37B423
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  7 Feb 2002 21:04:57 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g1854vO06384;
	Thu, 7 Feb 2002 21:04:57 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200202080504.g1854vO06384@freefall.freebsd.org>
Date: Thu, 7 Feb 2002 21:04:57 -0800 (PST)
From: Richard Sather <satherrl@dssrg.curtin.edu.au>
To: freebsd-gnats-submit@FreeBSD.org
Subject: DHCP hostname set as Hexadecimal string 
X-Send-Pr-Version: www-1.0

>Number:         34728
>Category:       bin
>Synopsis:       DHCP hostname set as Hexadecimal string
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dougb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 07 21:10:01 PST 2002
>Closed-Date:    Thu Jul 07 07:06:40 UTC 2011
>Last-Modified:  Thu Jul 07 07:06:40 UTC 2011
>Originator:     Richard Sather
>Release:        4.5-STABLE
>Organization:
The Labs
>Environment:
FreeBSD dssrg210.dssrg.curtin.edu.au 4.5-STABLE FreeBSD 4.5-STABLE #0: Wed Jan 30 17:08:19 WST 2002
    root@ifurita.dssrg.curtin.edu.au:/usr/src/sys/compile/SADMIN  i386
>Description:
DHCP client wants to set the hostname to a hex (xx:xx:...) string.
>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...
>Fix:
in /usr/src/contrib/isc-dhcp/common/tables.c

change "host-name", "X"
to "host-name", "t"
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: murray 
State-Changed-When: Thu Mar 28 03:35:54 PST 2002 
State-Changed-Why:  
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. 



Responsible-Changed-From-To: freebsd-bugs->murray 
Responsible-Changed-By: murray 
Responsible-Changed-When: Thu Mar 28 03:35:54 PST 2002 
Responsible-Changed-Why:  
I'm working on DHCP in FreeBSD. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=34728 

From: Richard Sather <satherrl@dssrg.curtin.edu.au>
To: freebsd-gnats-submit@FreeBSD.org, satherrl@dssrg.curtin.edu.au
Cc:  
Subject: Re: bin/34728: DHCP hostname set as Hexadecimal string
Date: Mon, 1 Apr 2002 20:26:12 +0800

 >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
State-Changed-From-To: feedback->open 
State-Changed-By: murray 
State-Changed-When: Fri Mar 18 02:35:28 GMT 2005 
State-Changed-Why:  
I am no longer maintaining DHCP.  Maybe this was fixed in 3.0.1? 



Responsible-Changed-From-To: murray->bugs 
Responsible-Changed-By: murray 
Responsible-Changed-When: Fri Mar 18 02:35:28 GMT 2005 
Responsible-Changed-Why:  
I am no longer maintaining DHCP.  Maybe this was fixed in 3.0.1? 


http://www.freebsd.org/cgi/query-pr.cgi?pr=34728 
Responsible-Changed-From-To: bugs->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Mar 21 12:23:55 GMT 2005 
Responsible-Changed-Why:  
Canonicalize assignment. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=34728 
State-Changed-From-To: open->closed 
State-Changed-By: dougb 
State-Changed-When: Thu Jul 7 07:03:55 UTC 2011 
State-Changed-Why:  

1. Old, unsupported FreeBSD version 
2. Likely OBE 


Responsible-Changed-From-To: freebsd-bugs->dougb 
Responsible-Changed-By: dougb 
Responsible-Changed-When: Thu Jul 7 07:03:55 UTC 2011 
Responsible-Changed-Why:  

I closed it 

http://www.freebsd.org/cgi/query-pr.cgi?pr=34728 
>Unformatted:
