mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
radvd & dhcpd6 configure fix; closes #2586
Safety net to configure dhcpd6 and radvd6
This commit is contained in:
parent
6e18e3a991
commit
fbdfcf758b
@ -2581,15 +2581,12 @@ function interface_track6_configure($interface = 'lan', $lancfg, $linkupevent =
|
||||
interface_track6_slaac_configure($interface, $lancfg);
|
||||
/* FALLTHROUGH */
|
||||
case 'dhcp6':
|
||||
if ($linkupevent == true) {
|
||||
/*
|
||||
* NOTE: Usually come here from rc.linkup calling so just call directly intead of generating event
|
||||
* Instead of disrupting all other v4 configuration just restart DHCPv6 client for now
|
||||
*
|
||||
* XXX: Probably DHCPv6 client should handle this autmagically itself?
|
||||
*/
|
||||
if ($linkupevent) {
|
||||
$parentrealif = get_real_interface($lancfg['track6-interface']);
|
||||
killbypid("/var/run/dhcp6c_{$parentrealif}.pid", 'HUP');
|
||||
} else {
|
||||
/* XXX move high-level callback up the call stack */
|
||||
services_dhcpd_configure('inet6');
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user