From: Simon Kelley <simon@thekelleys.org.uk>
To: cerowrt-devel@lists.bufferbloat.net
Subject: Re: [Cerowrt-devel] DHCPv4 lease file empty, DHCPv6 lease shows "expired"
Date: Tue, 06 May 2014 19:12:50 +0100 [thread overview]
Message-ID: <53692622.2090203@thekelleys.org.uk> (raw)
In-Reply-To: <20140504210055.GH30850@angus.ind.WPI.EDU>
On 04/05/14 22:00, Chuck Anderson wrote:
> b. Modify dnsmasq and odhcpd to measure elapsed time rather than
> storing the current wallclock time-of-day for the start of each
> lease. Maybe using the Linux system uptime seconds-since-boot
> would work.
Dnsmasq can do this already. Build with -DHAVE_BROKEN_RTC
> Unfortunately, this would be problematic for
> maintaining leases when the system is rebooted. Does Cero/OpenWrt
> even maintain leases over reboots? The RFCs say this is mandatory,
> but I wonder given that the lease files are stored under /tmp. Is
> /tmp maintained over reboots?
>
I don't know if CeroWRT keeps the leases in non-volatile storage, but if
it does, then dnsmasq with HAVE_BROKEN_RTC keeps lease-time-remaining
rather then time-lease-expires, so the effect of a reboot is simply to
extend DHCP leases for the duration of the downtime.
Cheers,
Simon.
prev parent reply other threads:[~2014-05-06 18:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-04 21:00 Chuck Anderson
2014-05-06 18:12 ` Simon Kelley [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://lists.bufferbloat.net/postorius/lists/cerowrt-devel.lists.bufferbloat.net/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53692622.2090203@thekelleys.org.uk \
--to=simon@thekelleys.org.uk \
--cc=cerowrt-devel@lists.bufferbloat.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox