From owner-freebsd-current Sat Jul 22 4:18:37 2000 Delivered-To: freebsd-current@freebsd.org Received: from afs.itc.keio.ac.jp (afs.itc.keio.ac.jp [131.113.212.3]) by hub.freebsd.org (Postfix) with SMTP id 2FE6E37B648 for ; Sat, 22 Jul 2000 04:18:32 -0700 (PDT) (envelope-from hosokawa@itc.keio.ac.jp) Received: (qmail 20510 invoked from network); 22 Jul 2000 11:18:30 -0000 Received: from pppb30.yk.rim.or.jp (HELO localhost.FromTo.Cc) (202.247.186.130) by afs.itc.keio.ac.jp with SMTP; 22 Jul 2000 11:18:30 -0000 Date: Sat, 22 Jul 2000 20:18:30 +0900 Message-ID: <86ittyjtvd.wl@ringo.FromTo.Cc> From: Tatsumi Hosokawa To: nsayer@quack.kfu.com Cc: freebsd-current@freebsd.org Subject: Re: DHCP client problem? In-Reply-To: In your message of "Fri, 21 Jul 2000 17:22:15 -0700 (PDT)" <200007220022.RAA02194@medusa.kfu.com> References: <200007220022.RAA02194@medusa.kfu.com> User-Agent: Wanderlust/1.1.0 (Overjoyed) SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui) MULE XEmacs/21.1 (patch 9) (Canyonlands) (i386--freebsd) MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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