Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Jul 2000 20:18:30 +0900
From:      Tatsumi Hosokawa <hosokawa@itc.keio.ac.jp>
To:        nsayer@quack.kfu.com
Cc:        freebsd-current@freebsd.org
Subject:   Re: DHCP client problem?
Message-ID:  <86ittyjtvd.wl@ringo.FromTo.Cc>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
At Fri, 21 Jul 2000 17:22:15 -0700 (PDT),
Nick Sayer <nsayer@quack.kfu.com> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86ittyjtvd.wl>