From owner-cvs-src@FreeBSD.ORG Mon Jul 28 05:49:24 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B5C7037B401; Mon, 28 Jul 2003 05:49:24 -0700 (PDT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id A6A9C43F93; Mon, 28 Jul 2003 05:49:23 -0700 (PDT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.9/8.12.9) with ESMTP id h6SCmWai056901; Mon, 28 Jul 2003 08:48:32 -0400 (EDT) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)h6SCmW3M056898; Mon, 28 Jul 2003 08:48:32 -0400 (EDT) Date: Mon, 28 Jul 2003 08:48:32 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Martin Blapp In-Reply-To: <20030728142857.A41136@cvs.imp.ch> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: cvs-src@FreeBSD.org cc: Martin Blapp cc: cvs-all@FreeBSD.org cc: src-committers@FreeBSD.org Subject: Re: cvs commit: src/etc/defaults rc.conf src/etc/rc.d dhclient X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jul 2003 12:49:25 -0000 On Mon, 28 Jul 2003, Martin Blapp wrote: > > Forgive me for not having time to go read the dhclient details, but > > unfortunately I'm a bit pressed for time this morning. I just wanted to > > confirm that dhclient gives a "first reasonable try" if the link is up in > > this situation, rather than immediately backgrounding, since some services > > will behave poorly if they don't find IP addresses, etc. Ie., this > > operates like the NFS mount background option: "If at first you don't > > succeed, try again on your *own* time". > > > > The services I have in mind are, indeed, network file system mounting, > > sandboxed named, sendmail, and third party applications that like to bind > > each IP address manually rather than use INADDR_ANY. > > and natd (where I've fixed the rc script to work with the dhclient case) > > The problem here is that a box not connected to lan with dhcp hangs till > you press CTRL C. Well, or a minute or two, but I agree that in the notebook disconnected from a network case, that's not much fun. > If this change provides errors in some setups, I'll revert it and add a > option to dhclient to wait at least 5 seconds if no lease has been > aquired. This is something we'll probably want to play by ear -- trading off boot time and making sure that the right services are there to support various kinds of activities. I think part of the real solution is likely to improve the behavior of some of our applications in the presence of changing network configuration. A few more apps probably need to learn about routing sockets so they can pick up IP address change notifications, interface arrival/departure, etc. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Network Associates Laboratories