mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-04-01 20:05:19 +00:00
network: assume DNSMASQ_DHCPv6_SUPPORT
Remove the (now unreachable) error message and the macro. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Laine Stump <laine@redhat.com>
This commit is contained in:
parent
80d1a5ff2e
commit
e3baacd344
src
@ -1329,20 +1329,6 @@ networkDnsmasqConfContents(virNetworkObj *obj,
|
||||
}
|
||||
if (VIR_SOCKET_ADDR_IS_FAMILY(&ipdef->address, AF_INET6)) {
|
||||
if (ipdef->nranges || ipdef->nhosts) {
|
||||
if (!DNSMASQ_DHCPv6_SUPPORT(caps)) {
|
||||
unsigned long version = dnsmasqCapsGetVersion(caps);
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
_("The version of dnsmasq on this host "
|
||||
"(%d.%d) doesn't adequately support "
|
||||
"IPv6 dhcp range or dhcp host "
|
||||
"specification. Version %d.%d or later "
|
||||
"is required."),
|
||||
(int)version / 1000000,
|
||||
(int)(version % 1000000) / 1000,
|
||||
DNSMASQ_DHCPv6_MAJOR_REQD,
|
||||
DNSMASQ_DHCPv6_MINOR_REQD);
|
||||
return -1;
|
||||
}
|
||||
if (ipv6def) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||
_("For IPv6, multiple DHCP definitions "
|
||||
|
@ -107,15 +107,9 @@ unsigned long dnsmasqCapsGetVersion(dnsmasqCaps *caps);
|
||||
char *dnsmasqDhcpHostsToString(dnsmasqDhcpHost *hosts,
|
||||
unsigned int nhosts);
|
||||
|
||||
#define DNSMASQ_DHCPv6_MAJOR_REQD 2
|
||||
#define DNSMASQ_DHCPv6_MINOR_REQD 64
|
||||
#define DNSMASQ_RA_MAJOR_REQD 2
|
||||
#define DNSMASQ_RA_MINOR_REQD 64
|
||||
|
||||
#define DNSMASQ_DHCPv6_SUPPORT(CAPS) \
|
||||
(dnsmasqCapsGetVersion(CAPS) >= \
|
||||
(DNSMASQ_DHCPv6_MAJOR_REQD * 1000000) + \
|
||||
(DNSMASQ_DHCPv6_MINOR_REQD * 1000))
|
||||
#define DNSMASQ_RA_SUPPORT(CAPS) \
|
||||
(dnsmasqCapsGetVersion(CAPS) >= \
|
||||
(DNSMASQ_RA_MAJOR_REQD * 1000000) + \
|
||||
|
Loading…
x
Reference in New Issue
Block a user