Use correct mtu for pptp when wan is pppoe.

Have I mentioned how much I _HATE_ pptp lately?
This commit is contained in:
Scott Ullrich 2005-09-23 22:05:14 +00:00
parent b15e2ed405
commit 816f2e586f

View File

@ -622,6 +622,12 @@ EOD;
$mpdconf .= " load pt{$i}\n";
}
if ($config['interfaces']['wan']['ipaddr'] == "pppoe") {
$pptp_mtu = "1440";
} else {
$pptp_mtu = "1460";
}
for ($i = 0; $i < $g['n_pptp_units']; $i++) {
$clientip = long2ip(ip2long($pptpdcfg['remoteip']) + $i);
@ -651,7 +657,7 @@ pts:
set link yes acfcomp protocomp
set link no pap chap
set link enable chap-msv2
set link mtu 1460
set link mtu {$pptp_mtu}
set link keep-alive 10 60
set ipcp yes vjcomp
set bundle enable compression