[PATCH] udhcp: infinite retries

Samuel Ortiz sortiz at olivetti-engineering.com
Tue Feb 6 16:33:02 UTC 2007


Steven Scholz wrote:
> Samuel Ortiz wrote:
>> Paul Fox wrote:
>>>  > >>> 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.
>> well, with the infinite retries option, we can live without netplugd.
> How about using
> 
> -b,     --background
> 	Fork to background if lease cannot be immediately negotiated.
> 
> ???

I didn't check this option, but it seems that it will wakeup after 60
seconds, and try again, so this could be a solution, yes.

Cheers,
Samuel.


> Steven
> 




More information about the busybox mailing list