Re: [libvirt] 3 patches to solve bug 524280

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

 



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 192.168.122.1 --except-interface lo --dhcp-range
192.168.122.2,192.168.122.254 --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

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

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]