diff options
author | jim-p <jimp@pfsense.org> | 2011-11-01 16:30:14 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-11-01 16:31:06 -0400 |
commit | 1cad6f6c891f7c70b36cfbdbaf4126084ab729ee (patch) | |
tree | d572401cdce4677b4e49d572cb2c418e03350b3d /etc | |
parent | 520d41370edc28491306417756d17656e409e4bf (diff) | |
download | pfsense-1cad6f6c891f7c70b36cfbdbaf4126084ab729ee.zip pfsense-1cad6f6c891f7c70b36cfbdbaf4126084ab729ee.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.inc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc index 5cd154c..595b87a 100644 --- a/etc/inc/upgrade_config.inc +++ b/etc/inc/upgrade_config.inc @@ -2210,6 +2210,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() { |