From a469927d168996a6780c17c9cd8132c0077d62dd Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 19 Oct 2009 23:00:53 -0400 Subject: Handle PPP interfaces --- etc/inc/pfsense-utils.inc | 2 +- usr/local/www/interfaces.php | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) 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"
Enter a description (name) for the interface here. + Type @@ -784,6 +791,7 @@ $types = array("none" => "None", "static" => "Static", "dhcp" => "DHCP", "pppoe" + MAC address -- cgit v1.1