diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-10-19 09:03:43 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-10-19 09:03:43 +0000 |
commit | b4914b78ba06e5136e5e982d63e18681d2783516 (patch) | |
tree | 4064449af84bb730d473dd10b2adf6d0d71a99bf /etc/inc/interfaces.inc | |
parent | 9a12451b3a77fc6d68c1e970c083deeb3e653c67 (diff) | |
download | pfsense-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/inc/interfaces.inc')
-rw-r--r-- | etc/inc/interfaces.inc | 10 |
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 |