mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 19:15:22 +00:00
interfaces.inc, dead code detection
This commit is contained in:
parent
14ea5dc575
commit
26bbf42252
@ -2497,27 +2497,6 @@ function kill_dhclient_process($interface)
|
||||
killbypid(find_dhclient_process($interface), 'TERM', true);
|
||||
}
|
||||
|
||||
function interface_vlan_mtu_configured($realhwif, $mtu)
|
||||
{
|
||||
global $config;
|
||||
|
||||
if (isset($config['vlans']['vlan'])) {
|
||||
foreach ($config['vlans']['vlan'] as $vlan) {
|
||||
if ($vlan['if'] != $realhwif) {
|
||||
continue;
|
||||
}
|
||||
$assignedport = convert_real_interface_to_friendly_interface_name($vlan['vlanif']);
|
||||
if (!empty($assignedport) && !empty($config['interfaces'][$assignedport]['mtu'])) {
|
||||
if (intval($config['interfaces'][$assignedport]['mtu']) > $mtu) {
|
||||
$mtu = $portmtu;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $mtu;
|
||||
}
|
||||
|
||||
function interface_virtual_create($interface)
|
||||
{
|
||||
global $config;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user