Re: TIMEOUT on Rebind?
Roy Marples
Mon Jun 06 19:25:23 2016
Hi David
On 06/06/2016 18:47, David Hauck wrote:
> I don't have reboot configured for a specific value and my
> understanding is that this defaults to 5s in this case.
>
>> If this fails, dhcpcd will use the last lease if it's not expired
>> and the lastlease option is enabled. At this point you should see
>> the TIMEOUT reason.
>
> Right, OK, I definitely don't see this reason code show up. Any more
> ideas why?
None!
So lets add some debug code to find out.
Patch attached - you should see an extra DEBUG line with some
parameteres. Both should be non zero.
Let me know.
Roy
Index: dhcp.c
==================================================================
--- dhcp.c
+++ dhcp.c
@@ -2506,10 +2506,12 @@
/* Need to add this before dhcp_expire and friends. */
if (!ifo->fallback && ifo->options & DHCPCD_IPV4LL)
eloop_timeout_add_sec(ifp->ctx->eloop,
ifo->reboot, ipv4ll_start, ifp);
+ logger(ifp->ctx, LOG_INFO, "DEBUG %llu %d\n", ifo->options & DHCPCD_LASTLEASE,
+ state->lease.frominfo);
if (ifo->options & DHCPCD_LASTLEASE && state->lease.frominfo)
eloop_timeout_add_sec(ifp->ctx->eloop,
ifo->reboot, dhcp_lastlease, ifp);
else if (!(ifo->options & DHCPCD_INFORM))
eloop_timeout_add_sec(ifp->ctx->eloop,
Archive administrator: postmaster@marples.name