diff options
author | Ermal <eri@pfsense.org> | 2013-03-07 14:17:11 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-03-07 14:17:11 +0000 |
commit | 6d1594eb6701ffe480cc2496c9301df4d0f64515 (patch) | |
tree | e1ac83ddfbc7c7b54eb61127493982fe8158e4c8 /etc | |
parent | 4ffa46bf9c79a4b60fa2601477d6d3563219a8ef (diff) | |
download | pfsense-6d1594eb6701ffe480cc2496c9301df4d0f64515.zip pfsense-6d1594eb6701ffe480cc2496c9301df4d0f64515.tar.gz |
Correct code to apply the mtu correctly
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/interfaces.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index fc32587..685c1fc 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -2920,7 +2920,7 @@ function interface_configure($interface = "wan", $reloadall = false, $linkupeven if (!empty($assginedparent)) { $parentmtu = $config['interfaces'][$assginedparent]['mtu']; if (empty($parentmtu)) - $parentmtu = get_interface_mtu($realhwif); + $parentmtu = interface_vlan_mtu_configured($realhwif, $wancfg['mtu']); if ($wancfg['mtu'] > $parentmtu) { pfSense_interface_mtu($realhwif, $wancfg['mtu']); @@ -2936,7 +2936,7 @@ function interface_configure($interface = "wan", $reloadall = false, $linkupeven $portmtu = $config['interfaces'][$assginedport]['mtu']; if (empty($portmtu)) pfSense_interface_mtu($vlan['vlanif'], $wancfg['mtu']); - } else if (get_interface_mtu($vlan['vlanif']) < $wancfg['mtu']) + } else pfSense_interface_mtu($vlan['vlanif'], $wancfg['mtu']); } } |