While on regressions of OpenBSD's dhclient...

Sean Winn sean at gothic.net.au
Fri Jul 15 11:21:48 GMT 2005


Handling of hostnames sent by the DHCP server has gone back to the  
buggy handling of dhclient 2.x

Hostnames like ....


Hostname sent via ISC dhcpd 3.x: dhcp194.private.gothic.net.au
         Used on FreeBSD 4.x, 5.x system: dhcp194.private.gothic.net.au
         Used on FreeBSD CURRENT (probably RELENG_6):  
64:68:63:70:31:39:34:2e:70:72:69:76:61:74:65:2e:67:6f:74:68:69:63:2e: 
6e:65:74:2e:61:75:0

See bin/83468

Basically, pretty_print_option() gets upset over the trailing NUL.  
Whether the server should be sending the NUL, or the client ignoring  
it, I don't know, but later versions of ISC dhclient do have a fix and  
that's attached to the PR

There's still the underlying problem that if the lease changes hostname  
while dhclient is running, dhclient won't change the hostname, but  
that's a common fault in both dhclient versions.



More information about the freebsd-current mailing list