summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-11-01 16:30:14 -0400
committerjim-p <jimp@pfsense.org>2011-11-01 16:30:14 -0400
commitf6ee561edb89615910f316912ec033ab32e2960f (patch)
tree044a6a0f45bcc3d2a51674978ef421e48eb9868c /etc
parent8081f3162253954fff53fbfaba6bfff3a8d1985a (diff)
downloadpfsense-f6ee561edb89615910f316912ec033ab32e2960f.zip
pfsense-f6ee561edb89615910f316912ec033ab32e2960f.tar.gz
Convert MTU from 1.2.3 to MSS on 2.0, fixes #1886
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/upgrade_config.inc11
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc
index 0d62d23..d13598c 100644
--- a/etc/inc/upgrade_config.inc
+++ b/etc/inc/upgrade_config.inc
@@ -2212,6 +2212,17 @@ function upgrade_060_to_061() {
$config['interfaces']['wan']['enable'] = true;
if (is_array($config['interfaces']['lan']))
$config['interfaces']['lan']['enable'] = true;
+
+ /* On 1.2.3 the "mtu" field adjusted MSS.
+ On 2.x the "mtu" field is actually the MTU. Rename accordingly.
+ See redmine ticket #1886
+ */
+ foreach ($config['interfaces'] as $ifr => &$intf) {
+ if (isset($intf['mtu']) && is_numeric($intf['mtu'])) {
+ $intf['mss'] = $intf['mtu'];
+ unset($intf['mtu']);
+ }
+ }
}
function upgrade_061_to_062() {
OpenPOWER on IntegriCloud