At Fri, 21 Jul 2000 17:22:15 -0700 (PDT),
Nick Sayer <[EMAIL PROTECTED]> 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
[EMAIL PROTECTED]



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to