diff options
author | Ermal <eri@pfsense.org> | 2013-03-07 11:43:33 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-03-07 11:43:33 +0000 |
commit | 672137f4d12be55fb57614c2b74d7fcc6d12b683 (patch) | |
tree | 55a84d756ba59f464fcd090abd8013947c1d69ac /etc/inc | |
parent | 59297ade82bf551a98427cac7f7d79e31d09b3c2 (diff) | |
download | pfsense-672137f4d12be55fb57614c2b74d7fcc6d12b683.zip pfsense-672137f4d12be55fb57614c2b74d7fcc6d12b683.tar.gz |
Correct which mtu value is used to be correct
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/interfaces.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index c79554b..383518f 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -2904,10 +2904,10 @@ function interface_configure($interface = "wan", $reloadall = false, $linkupeven $parentmtu = get_interface_mtu($realhwif); if ($wancfg['mtu'] > $parentmtu) pfSense_interface_mtu($realhwif, $wancfg['mtu']); - } else if ($mtu != get_interface_mtu($realhwif)) - pfSense_interface_mtu($realhwif, $mtu); - } else if ($mtu != get_interface_mtu($realhwif)) - pfSense_interface_mtu($realhwif, $mtu); + } else if ($wancfg['mtu'] != get_interface_mtu($realhwif)) + pfSense_interface_mtu($realhwif, $wancfg['mtu']); + } else if ($wancfg['mtu'] != get_interface_mtu($realhwif)) + pfSense_interface_mtu($realhwif, $wancfg['mtu']); } else if ($mtu != get_interface_mtu($realhwif)) /* XXX: This is really dangerous for example with vlans changing their parent mtu! */ pfSense_interface_mtu($realhwif, $mtu); |