summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-10-19 09:03:43 +0000
committerErmal Luçi <eri@pfsense.org>2008-10-19 09:03:43 +0000
commitb4914b78ba06e5136e5e982d63e18681d2783516 (patch)
tree4064449af84bb730d473dd10b2adf6d0d71a99bf /etc
parent9a12451b3a77fc6d68c1e970c083deeb3e653c67 (diff)
downloadpfsense-b4914b78ba06e5136e5e982d63e18681d2783516.zip
pfsense-b4914b78ba06e5136e5e982d63e18681d2783516.tar.gz
When interface is configured for pppoe and mtu is also configured then adjust the pppoe mtu c
orrespondingly as to us this means pppoe mtu and not parent interface mtu.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc10
1 files changed, 9 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 9d46cd7..98b4a65 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -1428,7 +1428,15 @@ EOD;
set link no acfcomp protocomp
set link disable pap chap
set link accept chap
- set link mtu 1492
+
+EOD;
+ if (empty($wancfg['mtu']))
+ $mpdmtu = "1492";
+ else
+ $mpdmtu = "{$wancfg['mtu']}";
+
+ $mpdconf .= <<<EOD
+ set link mtu {$mpdmtu}
set ipcp yes vjcomp
set ipcp ranges 0.0.0.0/0 0.0.0.0/0
OpenPOWER on IntegriCloud