summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-03-07 11:43:33 +0000
committerErmal <eri@pfsense.org>2013-03-07 11:43:33 +0000
commit672137f4d12be55fb57614c2b74d7fcc6d12b683 (patch)
tree55a84d756ba59f464fcd090abd8013947c1d69ac /etc
parent59297ade82bf551a98427cac7f7d79e31d09b3c2 (diff)
downloadpfsense-672137f4d12be55fb57614c2b74d7fcc6d12b683.zip
pfsense-672137f4d12be55fb57614c2b74d7fcc6d12b683.tar.gz
Correct which mtu value is used to be correct
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc8
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);
OpenPOWER on IntegriCloud