Re: Possible race condition in acquiring IP address results in no IP address acquired
Roy Marples
Sun Sep 14 15:05:23 2014
On Sunday 14 Sep 2014 08:01:47 Amit Uttamchandani wrote:
> On Sat, Sep 13, 2014 at 11:53:46PM +0100, Roy Marples wrote:
> The interesting thing is I compiled the latest version from tip and it
> works as expected. I will get you the logs when I get back on Monday. It
> seems as if in version 6.4.3, when dhcpcd sets an 8s timeout for IPv4LL,
> and then a dhcp offer is received, it still exits.
>
> Maybe the following commit fixes it in tip:
>
> eac782e8d2cbfbd67d76920ba9e9ebcf22aecf61
> Fix expire and re-solicit on drop
Nah, those two are separate issues, and one of them only occured in recent
trunk builds.
> With dhcpcd's carrier management, the daemon itself is spawned for eth0
> and then times out and exits (30s I think). So you're saying to set
> dhcpcd timeout to 0 so that the daemon never exits and thus handles
> carrier detection?
It's because you started it with zero flags and an interface.
Try using the -M flag or not specifying an interface.
If you wish to restrict interfaces, another option is to use the
allowinterface / denyinterface options in dhcpcd.conf
Roy
Archive administrator: postmaster@marples.name