Revision 20eb8203
Added by Renato Botelho over 12 years ago
etc/inc/interfaces.inc | ||
---|---|---|
2913 | 2913 |
} |
2914 | 2914 |
|
2915 | 2915 |
$mtu = get_interface_default_mtu(remove_ifindex($realhwif)); |
2916 |
$assignedparent = convert_real_interface_to_friendly_interface_name($realhwif); |
|
2917 |
if (!empty($assignedparent) && isset($config['interfaces'][$assignedparent]['mtu'])) |
|
2918 |
$mtu = $config['interfaces'][$assignedparent]['mtu']; |
|
2916 | 2919 |
|
2917 | 2920 |
if (!empty($wancfg['mtu'])) { |
2918 | 2921 |
if (stristr($realif, "_vlan")) { |
2919 |
$assignedparent = convert_real_interface_to_friendly_interface_name($realhwif); |
|
2920 | 2922 |
if (!empty($assignedparent)) { |
2921 | 2923 |
$parentmtu = $config['interfaces'][$assignedparent]['mtu']; |
2922 | 2924 |
if (empty($parentmtu)) |
Also available in: Unified diff
Consider parent mtu when it's set instead of default one