summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-03-07 11:45:19 +0000
committerErmal <eri@pfsense.org>2013-03-07 11:45:19 +0000
commitb1939343b069db4ee45f4911485ad1fe78c055bd (patch)
tree150bf4cab9606e96890c655992d963baaaddb9ce
parent672137f4d12be55fb57614c2b74d7fcc6d12b683 (diff)
downloadpfsense-b1939343b069db4ee45f4911485ad1fe78c055bd.zip
pfsense-b1939343b069db4ee45f4911485ad1fe78c055bd.tar.gz
Set mtu to the correct interface
-rw-r--r--etc/inc/interfaces.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 383518f..9df2474 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -2906,8 +2906,8 @@ function interface_configure($interface = "wan", $reloadall = false, $linkupeven
pfSense_interface_mtu($realhwif, $wancfg['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 ($wancfg['mtu'] != get_interface_mtu($realif))
+ pfSense_interface_mtu($realif, $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