diff options
author | Ermal <eri@pfsense.org> | 2012-05-23 17:32:37 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-05-23 17:35:13 +0000 |
commit | 6805d2d25f75ccb6d9b1da3814ba2244b3e3107e (patch) | |
tree | 533449dfc6ebb953756b0e1721c9fdc07400ac29 /etc/inc | |
parent | e313da37e61e031413d9269806cb4eecf6b8da4d (diff) | |
download | pfsense-6805d2d25f75ccb6d9b1da3814ba2244b3e3107e.zip pfsense-6805d2d25f75ccb6d9b1da3814ba2244b3e3107e.tar.gz |
Fixes #2209. Obey the mtu value set on the interfaces.php page. Though this value will be overwritten if there is a configuration under PPP settings tab. Maybe a good idea is to set MRU at the same value if not set?
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/interfaces.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 01d29a7..46291c1 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -1454,6 +1454,9 @@ function interface_ppps_configure($interface) { $passwd = base64_decode($ppp['password']); $bandwidths = explode(',',$ppp['bandwidth']); + $defaultmtu = "1492"; + if (!empty($ifcfg['mtu'])) + $defaultmtu = intval($ifcfg['mtu']); $mtus = explode(',',$ppp['mtu']); $mrus = explode(',',$ppp['mru']); @@ -1584,7 +1587,7 @@ EOD; EOD; if (empty($mtus[$pid])) - $mtus[$pid] = "1492"; + $mtus[$pid] = $defaultmtu; $mpdconf .= <<<EOD set link mtu {$mtus[$pid]} |