mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 17:44:41 +00:00
interfaces: delete unused
This commit is contained in:
parent
4f721fc0f2
commit
2fcb815416
@ -4052,27 +4052,6 @@ function get_interface_subnet($interface = 'wan')
|
||||
return null;
|
||||
}
|
||||
|
||||
function get_interface_subnetv6($interface = 'wan')
|
||||
{
|
||||
$realif = get_real_interface($interface, 'inet6');
|
||||
if (!$realif) {
|
||||
if (strstr($interface, '_vip')) {
|
||||
list($interface, $vhid) = explode('_vip', $interface);
|
||||
$realif = get_real_interface($interface, 'inet6');
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
$ifinfo = legacy_get_interface_addresses($realif);
|
||||
|
||||
if (isset($ifinfo['subnetbits6'])) {
|
||||
return $ifinfo['subnetbits6'];
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/* return true if interface has a gateway */
|
||||
function interface_has_gateway($friendly)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user