summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-03-08 09:15:33 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-03-08 10:48:09 -0300
commit20eb8203b18fe1919a9d58368ed9e31fd676238b (patch)
treecb4951dc4366afa685dbc4c60918e22e357f0887 /etc
parent5ee6ce256c56480902ff60e3863922b092161483 (diff)
downloadpfsense-20eb8203b18fe1919a9d58368ed9e31fd676238b.zip
pfsense-20eb8203b18fe1919a9d58368ed9e31fd676238b.tar.gz
Consider parent mtu when it's set instead of default one
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc4
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))
OpenPOWER on IntegriCloud