diff options
author | Ermal <eri@pfsense.org> | 2013-03-07 11:45:19 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-03-07 11:45:19 +0000 |
commit | b1939343b069db4ee45f4911485ad1fe78c055bd (patch) | |
tree | 150bf4cab9606e96890c655992d963baaaddb9ce | |
parent | 672137f4d12be55fb57614c2b74d7fcc6d12b683 (diff) | |
download | pfsense-b1939343b069db4ee45f4911485ad1fe78c055bd.zip pfsense-b1939343b069db4ee45f4911485ad1fe78c055bd.tar.gz |
Set mtu to the correct interface
-rw-r--r-- | etc/inc/interfaces.inc | 4 |
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); |