Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jan 2003 14:23:08 -0800
From:      Terry Lambert <tlambert2@mindspring.com>
To:        kientzle@acm.org
Cc:        freebsd-hackers@FreeBSD.ORG, Dario Freni <saturnero@freesbie.org>
Subject:   Re: dhclient in background?
Message-ID:  <3E1F47CC.288EB8B8@mindspring.com>
References:  <3E1F3943.2090001@acm.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Tim Kientzle wrote:
> > We could modify rc.network by adding a & to the dhclient row ...
> 
> Simply running dhclient in the background is probably not a
> great idea, since that will allow the boot to continue and
> any network programs/daemons will try to start before the
> network gets initialized.  (Even if your FreesBIE distro
> isn't running any network daemons, someone else will start
> from your work and try to add them... )

I have to agree with this.

This is actually a side effect of a design issue that no one has
addresses (yet), which is that sockets get bound to IP addresses,
instead of getting bound to interfaces.  If they were bound to the
interface, then it would not matter when the IP address changed
out from under it (e.g. when it finally got a lease, or when the
lease changed it's IP out from under it).

Mostly, this is a problem with cached data (in this case, the IP
address, but, e.g. with sendmail, also with cached information
derived from the IP address -- i.e. sendmail ansers connect
requests with a greeting using it's canonical name, which came
from a reverse lookup of the name based on a getnamebyaddr() of
the IP address of the primary interface to which the listening
socket is bound).


> > Can an optional flag be added (configurable in rc.conf)?
> 
> Not to CURRENT, no.  CURRENT has adopted rcNG, for which no such
> easy workaround is possible.  (Short of putting all the
> network startup back into a single script file.... ;-(

Really, we need to add an "interface" socket type, so that
rather than a bind to an IP address, the bind is to the interface,
and uses any IP address that happens to occur on the interface...
at any point in time.

-- Terry

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E1F47CC.288EB8B8>