Re: Dhcpcd not renewing lease in time
Jonas Ramstrand
Fri Oct 18 06:42:00 2019
Hi
Well the link is always up, but that explains how it normally works. The
device is suspending/resuming quite often, so don't think I want to renew
each time. But there is a rtc-timer, think I'll use that to trigg
renew/rebind.
Thanks!
//Jonas
Den tors 17 okt. 2019 15:44Roy Marples <roy@xxxxxxxxxxxx> skrev:
> On 17/10/2019 14:39, Roy Marples wrote:
> > The currect solution is for the kernel to notify interfaces that link is
> > down upon resuming and then notify the correct link state afterwards.
> >
> > dhcpcd will spot this and start renewal of the lease right away.
> >
> > Using the system time rather than the monotonic clock is not feasable as
> > system time can move which also breaks renewals.
>
> In the event of the kernel not doing this and being dumb, if you can
> hook into the resume event (ACPI call maybe?) then issuing `dhcpcd -n`
> will force a rebind which will also solve the problem.
>
> Roy
>
Archive administrator: postmaster@marples.name