mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
interfaces: find_interface_ip*() no longer in use #4749
This commit is contained in:
parent
f97d35508f
commit
4583c32ee7
@ -3896,17 +3896,6 @@ function link_interface_to_gif($interface)
|
||||
return $result;
|
||||
}
|
||||
|
||||
function find_interface_ip($realif, $ifconfig_details = null)
|
||||
{
|
||||
$ifinfo = legacy_get_interface_addresses($realif, $ifconfig_details);
|
||||
|
||||
if (!isset($ifinfo['ipaddr'])) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $ifinfo['ipaddr'];
|
||||
}
|
||||
|
||||
function find_interface_network($realif, $subnet = true, $ifconfig_details = null)
|
||||
{
|
||||
$ifinfo = legacy_get_interface_addresses($realif, $ifconfig_details);
|
||||
@ -3925,17 +3914,6 @@ function find_interface_network($realif, $subnet = true, $ifconfig_details = nul
|
||||
return "{$addr}/${net}";
|
||||
}
|
||||
|
||||
function find_interface_ipv6($realif, $ifconfig_details = null)
|
||||
{
|
||||
$ifinfo = legacy_get_interface_addresses($realif, $ifconfig_details);
|
||||
|
||||
if (!isset($ifinfo['ipaddr6'])) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $ifinfo['ipaddr6'];
|
||||
}
|
||||
|
||||
function find_interface_networkv6($realif, $subnet = true, $ifconfig_details = null)
|
||||
{
|
||||
$ifinfo = legacy_get_interface_addresses($realif, $ifconfig_details);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user