[PATCH] udhcp: infinite retries
Paul Fox
pgf at brightstareng.com
Tue Feb 6 14:17:44 UTC 2007
> >>> It may be useful (at least it is for us) to keep on sending DHCP request
> >>> and renewals for ever until we actually get an answer. For that purpose
> >>> udhcpc -t 0 could do the job.
> >> I guess udhcpc -t 999999999 will be the same in practice.
> >
> > Almost, but not exactly.
> > We have machines that can be powered up without being connected to any
> > network for weeks. However, we need them to fetch an IP if they ever get
> > plugged to some network.
>
> Then maybe you want to use something like netplugd ot ifplugd ...
of course that takes care of the locally connected problem, but
not the "connected to a switch which is itself disconnected"
problem. but i agree -- if it were me, i'd probably use a
combination of the mechanisms.
dhcp should be using netlink itself, to track interface connectivity. (i.e.,
needing ifplugd is a bug, in my opinion.)
paul
=---------------------
paul fox, pgf at brightstareng.com
More information about the busybox
mailing list