<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 16 May 2015 at 08:16,  <span dir="ltr"><<a href="mailto:dnsmasq-discuss-request@lists.thekelleys.org.uk" target="_blank">dnsmasq-discuss-request@lists.thekelleys.org.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Date: Fri, 15 May 2015 20:53:16 +0100<br>
From: Simon Kelley <<a href="mailto:simon@thekelleys.org.uk">simon@thekelleys.org.uk</a>><br>
To: <a href="mailto:dnsmasq-discuss@lists.thekelleys.org.uk">dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
Subject: Re: [Dnsmasq-discuss] Bug list and DHCP test harness<br>
Message-ID: <<a href="mailto:55564EAC.3070006@thekelleys.org.uk">55564EAC.3070006@thekelleys.org.uk</a>><br>
Content-Type: text/plain; charset=windows-1252<br>
<br>
On 15/05/15 17:22, Tom Isaacson wrote:<br>
> We have a device (not made by us) that's using dnsmasq V2.46 and<br>
> occasionally we've seen a few problems with it - DHCP renews being sent out<br>
> every minute, different IP address being provided on renew. Is there a bug<br>
> list for dnsmasq that shows what bugs existed in old versions? I know about<br>
> the changelog but it's not very easy to see what bugs existed when.<br>
<br>
The changelog is as good as it gets, I'm afraid. The git history doesn't<br>
go back that far. The only other resource is my memory, which is faulty<br>
and partial, as you might imagine. However I think I'd remember if there<br>
was ever a bug of that nature (changing IP address), and I don't<br>
remember such. The timing of DHCP renews is down to the client, which<br>
implies a client problem for the "renew every minute" problem.<br>
<br>
><br>
><br>
> The second problem I mentioned - different IP address being provided on<br>
> renew - has exposed a bug on our device. We think we've fixed it but I was<br>
> wondering if there's a DHCP server test harness we can use to recreate the<br>
> cause by setting a short lease time then changing the IP address on every<br>
> renew. Any suggestions?<br>
><br>
<br>
<br>
Can you explain in more detail exactly what's happening here. The renew<br>
starts with a client asking to renew an address. The server will either<br>
acknowledge that or send a DHCPNAK if the address isn't available. Are<br>
you saying that the server is sending a DHCPACK, but for a different<br>
address?<br>
<br>
<br>
<br>
Cheers,<br>
<br>
Simon.<br>
<br></blockquote><div><br></div><div>I haven't looked at the packets because we don't have any way to recreate the problem and we only have logs from our device. What we're seeing is after the lease time (24 hours) expires our device gets a different IP address, one more than the one it was using previously. I've checked dnsmasq.leases and the MAC address only appears once so no idea how this could be happening.<br><br></div><div>For the "renew every minute" problem our device is seeing the lease time correctly but seems to be being sent the same IP address every minute. We're running embedded Linux and using a recent version of udhcpc from Busybox and we haven't seen any problems when running on other networks.<br><br></div><div>I'm pretty sure these problems are on the device running dnsmasq (I'm not going to use the phrase "dodgy Chinese HW manufacturer"), I just wanted to check whether there were any known problems in this old version of dnsmasq. We'll probably get them to upgrade it anyway but I think this may be the stability of their device in general - these aren't the only problems we're seeing.<br><br></div><div>Tom<br><br></div></div></div></div>