From 3a906378cb8094c4fcf1c6ad7421199670ad8e70 Mon Sep 17 00:00:00 2001 From: gnhb Date: Mon, 7 Jun 2010 22:42:31 +0700 Subject: Initial support for DCHP+PPtP/L2tP. DHCP + PPPoE is supported too. Must create an OPTx interface and set to DHCP for DHCP+PPPoE. --- usr/local/www/interfaces_ppps_edit.php | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'usr/local/www/interfaces_ppps_edit.php') diff --git a/usr/local/www/interfaces_ppps_edit.php b/usr/local/www/interfaces_ppps_edit.php index 4254fde..694b54a 100644 --- a/usr/local/www/interfaces_ppps_edit.php +++ b/usr/local/www/interfaces_ppps_edit.php @@ -314,10 +314,7 @@ if ($_POST) { if (!empty($_POST['apn'])){ $ppp['apn'] = $_POST['apn']; - if (!empty($_POST['apnum'])) - $ppp['apnum'] = $_POST['apnum']; - else - $ppp['apnum'] = "1"; + $ppp['apnum'] = $_POST['apnum']; } else { unset($ppp['apn']); unset($ppp['apnum']); @@ -509,7 +506,7 @@ $types = array("select" => "Select", "ppp" => "PPP", "pppoe" => "PPPoE", "pptp" echo " value=\"{$key}\" >" . htmlspecialchars($opt) . ""; } ?> - + @@ -685,7 +682,7 @@ $types = array("select" => "Select", "ppp" => "PPP", "pppoe" => "PPPoE", "pptp"
- + @@ -850,14 +847,14 @@ $types = array("select" => "Select", "ppp" => "PPP", "pppoe" => "PPPoE", "pptp"
MTU -
Set MTU for each link if links have different bandwidths, otherwise, mtu will default to 1492. +
MTU will default to 1492.
MRU -
Set MRU for each link if links have different bandwidths, otherwise, mru will default to 1492. +
MRU will default to 1492.