[Dnsmasq-discuss] Change in dnsmasq.leases behaviour?

Simon Kelley simon at thekelleys.org.uk
Sun Feb 10 14:39:10 GMT 2013


On 10/02/13 14:32, Kevin Darbyshire-Bryant wrote:
> Hi All,
>
> Slightly long story and I'm *very* new to all this so please go easy :-)
>
> I'm a 'Tomato' firmware router user and recently been getting into IPv6
> - discovered a known bug whereby dnsmasq wasn't setting the 'on-link'
> bit in the IPv6 RAs.  Having not played with linux much before I then
> set about creating a firmware build environment so I could roll my own
> firmware until the Tomato developer/s upgrading dnsmasq from 2.61 to
> something recent (2.65 or even current)  The learning curve of late has
> been huge what with 'git'&  makefiles 'n' stuff.  Anyway, I've upgraded
> to 2.65 and while this has fixed the RA on-link issue the behaviour of
> dnsmasq.leases file appears to have changed:
>
> A 2.61 file looks like
>
> 43200 cc:7e:e7:7d:5f:63 192.168.235.6 Viera-TV 01:cc:7e:e7:7d:5f:63
> 42974 24:77:03:47:8f:ec 192.168.235.235 Animal 01:24:77:03:47:8f:ec
> duid 00:03:00:01:20:4e:7f:b7:4a:c0
>
> a 2.65 file looks like
>
> 43200 24:77:03:47:8f:ec 192.168.235.235 Animal 01:24:77:03:47:8f:ec
> 43200 18:87:96:59:a3:58 192.168.235.131 Kevins-Sensation-XE *
> 43200 00:10:83:77:af:bd 192.168.235.126 Laser *
> duid 00:03:00:01:20:4e:7f:b7:4a:c0
> 43200 301991503 2001:470:1f09:1ac::9e25 *
> 00:01:00:01:18:7d:49:a8:00:22:15:d8:78:25
> 43200 371488515 2001:470:1f09:1ac::1d88 Animal
> 00:01:00:01:16:a2:0a:60:f0:de:f1:be:f5:48
>
> Note that all the lease 'expiry' times appear to be the same despite
> being obtained at different times.
>
> I this causes problems for the Tomato router device status page which is
> supposed to show currently 'known' devices including lease time expiry
> which it now gets wrong/missing.
>
> As a workaround to all this I've patched 2.61 to include the RA on-link
> flag fix, but it'd be really great to have the latest version working.
> Any ideas what's wrong?
>
> compile time options: IPv6 GNU-getopt no-RTC no-DBus no-i18n no-IDN DHCP
                                         ^^^^^^^
> DHCPv6 no-Lua TFTP no-conntrack
>

With no-RTC set, the first field is "lease length" not expiry time. It 
rather looks like the 2.61 example was compiled the same way, so I think 
you may be barking up the wrong tree in looking for the reason that the 
status page is broken.


Cheers,

Simon.



More information about the Dnsmasq-discuss mailing list