summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-05-23 17:33:29 +0000
committerErmal <eri@pfsense.org>2012-05-23 17:33:29 +0000
commite39b6feb28bfbd72d0dca923bdc2d458b84476bd (patch)
tree275a8f4c142013ac2fb6677cd7099a76ab8bd0be /etc
parent8e53abfa0401c5c97df346ed55839c32807ac72f (diff)
downloadpfsense-e39b6feb28bfbd72d0dca923bdc2d458b84476bd.zip
pfsense-e39b6feb28bfbd72d0dca923bdc2d458b84476bd.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')
-rw-r--r--etc/inc/interfaces.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 4de322d..d0cade3 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -1360,6 +1360,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']);
@@ -1489,7 +1492,7 @@ EOD;
EOD;
if (empty($mtus[$pid]))
- $mtus[$pid] = "1492";
+ $mtus[$pid] = $defaultmtu;
$mpdconf .= <<<EOD
set link mtu {$mtus[$pid]}
OpenPOWER on IntegriCloud