From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bytemark.thekelleys.org.uk (bytemark.thekelleys.org.uk [IPv6:2001:41c8:51:46b:feff:ff:fe00:3310]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by huchra.bufferbloat.net (Postfix) with ESMTPS id 6360F21F1B8 for ; Tue, 6 May 2014 11:13:07 -0700 (PDT) Received: from [31.117.12.124] (helo=[192.168.150.151]) by bytemark.thekelleys.org.uk with esmtpa (Exim 4.80) (envelope-from ) id 1WhjrQ-0006Ga-LO for cerowrt-devel@lists.bufferbloat.net; Tue, 06 May 2014 18:13:02 +0000 Message-ID: <53692622.2090203@thekelleys.org.uk> Date: Tue, 06 May 2014 19:12:50 +0100 From: Simon Kelley User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: cerowrt-devel@lists.bufferbloat.net References: <20140504210055.GH30850@angus.ind.WPI.EDU> In-Reply-To: <20140504210055.GH30850@angus.ind.WPI.EDU> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Cerowrt-devel] DHCPv4 lease file empty, DHCPv6 lease shows "expired" X-BeenThere: cerowrt-devel@lists.bufferbloat.net X-Mailman-Version: 2.1.13 Precedence: list List-Id: Development issues regarding the cerowrt test router project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 May 2014 18:13:07 -0000 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.