#18110: dnsmasq and ipcalc.sh range mismatch (off by one)
------------------------+--------------------------------
  Reporter:  anonymous  |      Owner:  developers
      Type:  defect     |     Status:  new
  Priority:  normal     |  Milestone:
 Component:  packages   |    Version:  Trunk
Resolution:             |   Keywords:  dnsmasq, ipcalc.sh
------------------------+--------------------------------

Comment (by bittorf@…):

 the reason is line 413 in '/etc/init.d/dnsmasq':

 {{{
 [ "$limit" -gt 0 ] && limit=$((limit-1))
 }}}

 it was added in '5e1086da2dea492398407519d31310f5fb61880a':

 {{{
 dnsmasq: Fix parameter 'limit'

 'limit' is actually the number of IP addresses to serve. See the use of
 ipcalc.sh.
 For getting the expected number of IP addresses served, we have to
 decrement
 limit by one.
 }}}

 hmm...

--
Ticket URL: <https://dev.openwrt.org/ticket/18110#comment:1>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to