]> git.ipfire.org Git - thirdparty/libvirt.git/commit
network: fix DHCPv6 on networks with prefix != 64
authorLaine Stump <laine@laine.org>
Thu, 21 Apr 2016 18:03:18 +0000 (14:03 -0400)
committerLaine Stump <laine@laine.org>
Thu, 21 Apr 2016 19:06:25 +0000 (15:06 -0400)
commitbf3d9f305ebad9d8abd68e4600d2db996b860e68
tree0d2446eacc9c3ad8b1761e5885f2a43ba352f524
parent888dda4b33379d5699593aa3868ce60aa4958876
network: fix DHCPv6 on networks with prefix != 64

According to the dnsmasq manpage, the netmask for IPv4 address ranges
will be auto-deteremined from the interface dnsmasq is listening on,
but it can't do this for IPv6 for some reason - it instead assumes a
network prefix of 64 for all IPv6 address ranges. If this is
incorrect, dnsmasq will refuse to give out an address to clients,
instead logging this message:

 dnsmasq-dhcp[2380]: no address range available for DHCPv6 request via virbr0

The solution is for libvirt to add ",$prefix" to all IPv6 dhcp-range
arguments when building the dnsmasq.conf file.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1033739
src/network/bridge_driver.c
tests/networkxml2confdata/dhcp6-nat-network.conf
tests/networkxml2confdata/dhcp6-network.conf
tests/networkxml2confdata/dhcp6host-routed-network.conf