summaryrefslogtreecommitdiffstats
path: root/etc/inc/interfaces.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/interfaces.inc')
-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