summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-10-19 23:00:53 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-10-19 23:00:53 -0400
commita469927d168996a6780c17c9cd8132c0077d62dd (patch)
tree88a3015fe5d5b1b0b64082f97b74b261395c2744
parent92b88c1a0dcb62da6b147ce855634f0bfee3cbe6 (diff)
downloadpfsense-a469927d168996a6780c17c9cd8132c0077d62dd.zip
pfsense-a469927d168996a6780c17c9cd8132c0077d62dd.tar.gz
Handle PPP interfaces
-rw-r--r--etc/inc/pfsense-utils.inc2
-rwxr-xr-xusr/local/www/interfaces.php8
2 files changed, 9 insertions, 1 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 705386a..e0a6d4f 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -1125,7 +1125,7 @@ function get_interface_info($ifdescr) {
$ifinfo = array();
/* if list */
$iflist = get_configured_interface_with_descr(false,true);
-
+
$found = false;
foreach ($iflist as $if => $ifname) {
if ($ifdescr == $if || $ifdescr == $ifname) {
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index fe841dc..c5db181 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -178,6 +178,10 @@ if ($wancfg['ipaddr'] == "dhcp") {
} else
$pconfig['type'] = "none";
+// Handle PPP type interfaces
+if($wancfg['serialport'])
+ $pconfig['type'] = "none";
+
$pconfig['blockpriv'] = isset($wancfg['blockpriv']);
$pconfig['blockbogons'] = isset($wancfg['blockbogons']);
$pconfig['spoofmac'] = $wancfg['spoofmac'];
@@ -768,6 +772,9 @@ $types = array("none" => "None", "static" => "Static", "dhcp" => "DHCP", "pppoe"
<br><span class="vexpl">Enter a description (name) for the interface here.</span>
</td>
</tr>
+ <?
+ if(!$wancfg['serialport']):
+ ?>
<tr>
<td valign="middle" class="vncell"><strong>Type</strong></td>
<td class="vtable">
@@ -784,6 +791,7 @@ $types = array("none" => "None", "static" => "Static", "dhcp" => "DHCP", "pppoe"
</select>
</td>
</tr>
+ <?php endif; ?>
<tr>
<td valign="top" class="vncell">MAC address</td>
<td class="vtable">
OpenPOWER on IntegriCloud