From owner-freebsd-current Sun Jul 23 13:26:18 2000 Delivered-To: freebsd-current@freebsd.org Received: from quack.kfu.com (quack.kfu.com [205.178.90.194]) by hub.freebsd.org (Postfix) with ESMTP id D315737B8B3 for ; Sun, 23 Jul 2000 13:26:06 -0700 (PDT) (envelope-from nsayer@quack.kfu.com) Received: from medusa.kfu.com (medusa.kfu.com [205.178.90.222]) by quack.kfu.com (8.9.3/8.9.3) with ESMTP id NAA42628; Sun, 23 Jul 2000 13:26:03 -0700 (PDT) (envelope-from nsayer@quack.kfu.com) Received: from icarus.kfu.com (ssmail@localhost) by medusa.kfu.com (8.9.3/8.8.8) with ESMTP id NAA21130; Sun, 23 Jul 2000 13:26:03 -0700 (PDT) (envelope-from nsayer@quack.kfu.com) X-Authentication-Warning: medusa.kfu.com: ssmail owned process doing -bs Received: from quack.kfu.com by icarus.kfu.com with ESMTP (8.9.3//ident-1.0) id NAA10962; Sun, 23 Jul 2000 13:26:02 -0700 (PDT) Message-ID: <397B54DA.C55EBAE1@quack.kfu.com> Date: Sun, 23 Jul 2000 13:26:02 -0700 From: Nick Sayer X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Tatsumi Hosokawa Cc: freebsd-current@freebsd.org Subject: Re: DHCP client problem? References: <200007220022.RAA02194@medusa.kfu.com> <86ittyjtvd.wl@ringo.FromTo.Cc> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Reversing that patch fixes it. Since the source for this is in contrib, I presume we need to send this back to ISC rather than patch it in our tree? Tatsumi Hosokawa wrote: > > At Fri, 21 Jul 2000 17:22:15 -0700 (PDT), > Nick Sayer wrote: > > > > Something changed very recently in the dhcp client stuff that seems > > to have broke my -current machine's ability to be a dhcp client. > > > > The symptom is that I see > > > > ifconfig: netmask 255.255.255.224: bad value > > > > come out of the script invocation, and the ip address does not get > > set. > > My -current machine (cvsupped only a few hours ago) has the same > problem. > > > If I echo out the parameters and type in THE EXACT SAME command line > > myself, it works just fine. I suspect some sort of bizarre > > quoting conspiracy. :-) > > Maybe here? > (in > http://www.freebsd.org/cgi/cvsweb.cgi/src/contrib/isc-dhcp/client/scripts/freebsd.diff?r1=1.11&r2=1.12) > > - if [ x$old_ip_address = x ] || [ x$old_ip_address != x$new_ip_address ] || \ > - [ x$reason = xBOUND ] || [ x$reason = xREBOOT ]; then > - ifconfig $interface inet $new_ip_address $new_netmask_arg \ > - $new_broadcast_arg $medium > + if [ "x$old_ip_address" = "x" ] || [ "x$old_ip_address" != "x$new_ip_address" ] || \ > + [ "x$reason" = "xBOUND" ] || [ "x$reason" = "xREBOOT" ]; then > + ifconfig "$interface" inet "$new_ip_address" "$new_netmask_arg" \ > + "$new_broadcast_arg" "$medium" > > --------------------------- > Tatsumi Hosokawa > hosokawa@itc.keio.ac.jp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message