Re: TIMEOUT on Rebind?
Roy Marples
Wed Jun 01 05:47:29 2016
On Tuesday 31 May 2016 22:47:19 David Hauck wrote:
> Hi Roy,
>
> On Tuesday, May 31, 2016 12:12 PM, Roy Marples wrote:
> > Hi David
> >
> > On 2016-05-31 17:13, David Hauck wrote:
> >>> You need to enable the --lastlease option for this to work.
> >>
> >> Is there an equivalent parameter in dhcpcd.conf (I didn't see one)?
> >
> > lastlease also works :)
>
> ;) K, I'll give it a try.
>
> >> Also, what REASON string will the hook functions see when the
> >> TIMEOUT expires and the last lease is used/obtained?
> >
> > Yes.
>
> By "Yes" do you mean "Yes, TIMEOUT should be seen"?
>
> >> In both cases I mentioned I never see a TIMEOUT reason code appear
> >> in the hook functions. Is this expected? It would be nice to give
> >> the hook functions the ability to react to this state (in my case to
> >> perform other cleanup associated with a failed attempt to bring up
> >> the interface)>
> >
> > TIMEOUT should appear as the reason when the lastlease is used and
> > when a DHCP server cannot be reached.
>
> I'll look for this.
>
> Are you saying TIMEOUT will only be seen in this case and not the other
> cases I'm wondering about (i.e., when 'lastlease' isn't used)?
TIMEOUT will only be seen when lastlease is enabled AND a DHCP server could
not be contacted within the timeout period.
Roy
Archive administrator: postmaster@marples.name