[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] 3 patches to solve bug 524280

On Tue, Oct 13, 2009 at 04:10:04PM +0200, Daniel Veillard wrote:
>   Basically dnsmasq limits itself by default to 150 leases maximum.
> Which means we may inflict an arbitrary limit in the number of domains
> running on a given host
>    https://bugzilla.redhat.com/show_bug.cgi?id=524280
> The patches do 3 things:
>   - first introduce IPv4 and IPv6 parsing routines, generally useful
>     this could be used to double check input in other places too
>   - then when a DHCP range is defined use those routines to parse
>     the start and end, do some cheking and keep the range size in the
>     structure
>   - last when exec'ing dnsmasq compute the sum of all dhcp ranges
>     and pass the max lease option

  Forgot to add that with the 3 patches applied, if restarting the
default network you get the following running:

/usr/sbin/dnsmasq --strict-order --bind-interfaces
--pid-file=/var/run/libvirt/network/default.pid --conf-file=
--listen-address --except-interface lo --dhcp-range, --dhcp-lease-max=253

  I didn't tried on an IPv6, actually I'm not sure dnsmasq supports IPv6
but at least the libvirt side is then ready.


Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel veillard com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]