From owner-freebsd-current@FreeBSD.ORG Fri Jul 15 11:21:48 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 51EC016A41C for ; Fri, 15 Jul 2005 11:21:48 +0000 (GMT) (envelope-from sean@gothic.net.au) Received: from visi.gothic.net.au (visi.gothic.net.au [202.182.72.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE6ED43D46 for ; Fri, 15 Jul 2005 11:21:43 +0000 (GMT) (envelope-from sean@gothic.net.au) Received: from localhost (localhost [127.0.0.1]) by visi.gothic.net.au (Postfix) with SMTP id 8C8E5264BE for ; Fri, 15 Jul 2005 21:21:39 +1000 (EST) Received: from [10.99.34.33] (home.winn.id.au [202.182.72.30]) by visi.gothic.net.au (Postfix) with ESMTP id 15081264AB for ; Fri, 15 Jul 2005 21:21:39 +1000 (EST) Mime-Version: 1.0 (Apple Message framework v622) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: freebsd-current@freebsd.org From: Sean Winn Date: Fri, 15 Jul 2005 21:21:38 +1000 X-Mailer: Apple Mail (2.622) X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on visi.gothic.net.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.4 Subject: While on regressions of OpenBSD's dhclient... X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jul 2005 11:21:48 -0000 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.