diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-03-08 09:15:33 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-03-08 10:48:09 -0300 |
commit | 20eb8203b18fe1919a9d58368ed9e31fd676238b (patch) | |
tree | cb4951dc4366afa685dbc4c60918e22e357f0887 /etc/inc | |
parent | 5ee6ce256c56480902ff60e3863922b092161483 (diff) | |
download | pfsense-20eb8203b18fe1919a9d58368ed9e31fd676238b.zip pfsense-20eb8203b18fe1919a9d58368ed9e31fd676238b.tar.gz |
Consider parent mtu when it's set instead of default one
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/interfaces.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 8977519..1665ad1 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -2913,10 +2913,12 @@ function interface_configure($interface = "wan", $reloadall = false, $linkupeven } $mtu = get_interface_default_mtu(remove_ifindex($realhwif)); + $assignedparent = convert_real_interface_to_friendly_interface_name($realhwif); + if (!empty($assignedparent) && isset($config['interfaces'][$assignedparent]['mtu'])) + $mtu = $config['interfaces'][$assignedparent]['mtu']; if (!empty($wancfg['mtu'])) { if (stristr($realif, "_vlan")) { - $assignedparent = convert_real_interface_to_friendly_interface_name($realhwif); if (!empty($assignedparent)) { $parentmtu = $config['interfaces'][$assignedparent]['mtu']; if (empty($parentmtu)) |