Thanks for the clarification and updating the man page too. I'll update my configuration generating scripts. <div><br></div><div>Thanks again</div><div><br></div><div>Andrew<br><br><div class="gmail_quote"><div dir="ltr">On Thu 3 Mar 2016 21:26 Simon Kelley <<a href="mailto:simon@thekelleys.org.uk">simon@thekelleys.org.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 02/03/16 18:14, Andrew White wrote:<br>
> Hi,<br>
><br>
> version > 2.65 introduced a bug where this command gives "bad dhcp-range"<br>
><br>
> ./src/dnsmasq -F dhcp-range=set:tag1,192.168.1.1,192.168.1.254,static<br>
<br>
<br>
This was always wrong, so complaining about it is correct. The "static"<br>
flag _replaces_ the second IP address, as a range is not required when<br>
only static addresses are allowed, so it should be<br>
<br>
./src/dnsmasq -F dhcp-range=set:tag1,192.168.1.1,static<br>
><br>
> due to how the parsing of options were changed.<br>
> adding the subnetmask appears to work around it.<br>
><br>
> ./src/dnsmasq -F<br>
> dhcp-range=set:tag1,192.168.1.1,192.168.1.254,static,255.255.255.0<br>
<br>
That's accepted, but it shouldn't be and it's not parsed as anything<br>
like you're expecting, so that is a bug.<br>
<br>
I've just pushed a fix to this to git, also I fixed the BNF in the man<br>
page, which was at best misleading, and probably plain wrong.<br>
<br>
<br>
<br>
Cheers,<br>
<br>
Simon.<br>
<br>
<br>
><br>
> This was not required in 2.65<br>
><br>
><br>
> Thanks<br>
><br>
><br>
> Andrew<br>
><br>
><br>
><br>
> _______________________________________________<br>
> Dnsmasq-discuss mailing list<br>
> <a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
> <a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" rel="noreferrer" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
><br>
<br>
<br>
_______________________________________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" rel="noreferrer" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
</blockquote></div></div>