Allow prefix :: in constructed dhcp-range.

This commit is contained in:
Vladislav Grishenko
2013-08-19 16:20:31 +01:00
committed by Simon Kelley
parent 4568a6f842
commit e4cdbbf521
2 changed files with 11 additions and 1 deletions

View File

@@ -539,7 +539,9 @@ static int construct_worker(struct in6_addr *local, int prefix,
}
else if ((addr6part(local) == addr6part(&template->start6) ||
addr6part(local) == addr6part(&template->end6)) &&
addr6part(local) == addr6part(&template->end6) ||
(IN6_IS_ADDR_UNSPECIFIED(&template->start6) &&
IFACE_PERMANENT == (flags & (IFACE_PERMANENT | IFACE_DEPRECATED)))) &&
wildcard_match(template->template_interface, ifrn_name))
{
start6 = *local;