Changeset 25100


Ignore:
Timestamp:
2011-01-26T12:33:33+01:00 (5 years ago)
Author:
nbd
Message:

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.

Patch from: kentarou matsuyama <matsuyama@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/dnsmasq/files/dnsmasq.init

    r24051 r25100  
    301301        start="$(dhcp_calc "${start:-100}")" 
    302302        limit="${limit:-150}" 
     303        [ "$limit" -gt 0 ] && limit=$((limit-1)) 
    303304        eval "$(ipcalc.sh $ipaddr $netmask $start $limit)" 
    304305        if [ "$dynamicdhcp" = "0" ]; then END="static"; fi 
Note: See TracChangeset for help on using the changeset viewer.