fix stateless DHCPv6 for track6 interfaces

This commit is contained in:
Maurice Walker 2020-05-26 22:58:59 +02:00 committed by Franco Fichtner
parent 69c276adeb
commit 79e42f1359

View File

@ -1311,12 +1311,13 @@ function dhcpd_dhcp6_configure($verbose = false, $blacklist = array())
$dhcpdv6cfg[$ifname]['prefixrange']['to'] = Net_IPv6::compress($range['end']);
}
} else {
/* get config entry and marry it to the live prefix */
$dhcpdv6cfg[$ifname]['range'] = array(
'from' => make_ipv6_64_address($ifcfgipv6, $dhcpdv6cfg[$ifname]['range']['from']),
'to' => make_ipv6_64_address($ifcfgipv6, $dhcpdv6cfg[$ifname]['range']['to']),
);
if (!empty($dhcpdv6cfg[$ifname]['range']['from']) && !empty($dhcpdv6cfg[$ifname]['range']['to'])) {
/* get config entry and marry it to the live prefix */
$dhcpdv6cfg[$ifname]['range'] = array(
'from' => make_ipv6_64_address($ifcfgipv6, $dhcpdv6cfg[$ifname]['range']['from']),
'to' => make_ipv6_64_address($ifcfgipv6, $dhcpdv6cfg[$ifname]['range']['to']),
);
}
if (!empty($dhcpdv6cfg[$ifname]['prefixrange']['from']) && !empty($dhcpdv6cfg[$ifname]['prefixrange']['to'])) {
$pd_prefix_from_array = explode(':', $dhcpdv6cfg[$ifname]['prefixrange']['from']);
$pd_prefix_to_array = explode(':', $dhcpdv6cfg[$ifname]['prefixrange']['to']);