diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-03-08 09:14:56 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-03-08 10:47:28 -0300 |
commit | 5ee6ce256c56480902ff60e3863922b092161483 (patch) | |
tree | 527f2bd3780aaa5a7e8723d36aa0ad682c649adc /etc/inc/interfaces.inc | |
parent | 1f9ecbcd49d2c39886b6f9dddaa04fb3f9826894 (diff) | |
download | pfsense-5ee6ce256c56480902ff60e3863922b092161483.zip pfsense-5ee6ce256c56480902ff60e3863922b092161483.tar.gz |
Simplify a bit the logic
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r-- | etc/inc/interfaces.inc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index bc18f29..8977519 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -2972,9 +2972,7 @@ function interface_configure($interface = "wan", $reloadall = false, $linkupeven pfSense_interface_mtu($vlan['vlanif'], $wancfg['mtu']); else { $vlanmtu = $config['interfaces'][$assignedport]['mtu']; - if (!empty($vlanmtu) && $vlanmtu < $wancfg['mtu']) - continue; - else + if (empty($vlanmtu) || ($vlanmtu > $wancfg['mtu'])) pfSense_interface_mtu($vlan['vlanif'], $wancfg['mtu']); } } |