Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Feb 2006 14:22:26 +0100
From:      Tobias Roth <roth@iam.unibe.ch>
To:        Brooks Davis <brooks@one-eyed-alien.net>
Cc:        freebsd-rc@freebsd.org
Subject:   Re: dhclient existing when run early in startup
Message-ID:  <20060225132226.GA27397@droopy.unibe.ch>
In-Reply-To: <20060221212818.GA22713@odin.ac.hmc.edu>
References:  <20060221023750.GA32185@odin.ac.hmc.edu> <20060221045324.8717645048@ptavv.es.net> <20060221075140.GA9101@droopy.unibe.ch> <20060221212818.GA22713@odin.ac.hmc.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Feb 21, 2006 at 01:28:18PM -0800, Brooks Davis wrote:

> > Possible improvements:
> > 1) change dhclient to accept a timeout on the commandline
> 
> This would be a useful addon.  Actually, I'd like to see both the option
> to specify a shorter one and the option to keep trying forever since
> that's what's wanted in some scenerios.

I've implemented the two switches -i and -t, that override the variables
from dhclient.conf 'retry' and 'timeout'. The patch can be found here:

http://fsck.ch/dhclient_timeouts.diff

As it looks, the OpenBSD dhclient tries to be consistent with the naming
of the switches with isc-dhclient, as much as it's possible (ie -lf has
been changed to -l). Since -r is alrteady taken in isc-dhcp (release
current lease and exit), I opted for -i to specify the retry interval.

I'd also like to do a switch that tells dhclient to only try once, and
then exit, similar to the -1 of isc-dhclient. I'll look into it later.

What do you mean with "keep trying forever"? As I see it, dhclient
already tries forever, as it never exists. Do short enough timeouts
already cover your scenario?

Thanks, Tobias



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