mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 01:24:38 +00:00
fix stateless DHCPv6 for track6 interfaces
This commit is contained in:
parent
69c276adeb
commit
79e42f1359
@ -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']);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user