summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-04-24 00:27:06 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-04-24 00:27:06 +0000
commit8b1f580608992558afd6151ce049f00a23781226 (patch)
tree6a53827f2f076ded90aa71364c5388b89c49557a /etc/inc
parentabb1798d67160e12f928e2a54bd8afa17039247d (diff)
downloadpfsense-8b1f580608992558afd6151ce049f00a23781226.zip
pfsense-8b1f580608992558afd6151ce049f00a23781226.tar.gz
The earlier fix from today that fixed get_interfaces_with_gateways() created new problem where all interfaces would show up in assign_interfaces screen and other places. Instead of showing them all by default teach get_interfaces_with_gateways() how to extract the complete list.
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/pfsense-utils.inc18
-rw-r--r--etc/inc/util.inc30
2 files changed, 32 insertions, 16 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index f2803f9..587c247 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -3307,7 +3307,23 @@ function is_dhcp_server_enabled() {
function get_interfaces_with_gateway() {
global $config;
$ints = array();
- $ifdescrs = get_interface_list();
+ $vfaces = array(
+ 'bridge.?*',
+ 'ppp.?*',
+ 'sl.?*',
+ 'gif.?*',
+ 'faith.?*',
+ 'lo.?*',
+ 'ng.?*',
+ 'vlan.?*',
+ 'pflog.?*',
+ 'pfsync.?*',
+ 'enc.?*',
+ 'tun.?*',
+ 'carp.?*'
+ );
+ $ifdescrs = get_interface_list("active","physical",$vfaces);
+
/* loop interfaces, check config for outbound */
foreach ($ifdescrs as $ifdescr => $ifname) {
diff --git a/etc/inc/util.inc b/etc/inc/util.inc
index 0ff8bf5..8af4444 100644
--- a/etc/inc/util.inc
+++ b/etc/inc/util.inc
@@ -268,21 +268,21 @@ function get_interface_list($mode = "active", $keyby = "physical", $vfaces = "")
$upints = array();
/* get a list of virtual interface types */
if(!$vfaces) {
- $vfaces = array(
- 'bridge.?*',
- 'ppp.?*',
- 'sl.?*',
- 'gif.?*',
- 'faith.?*',
- 'lo.?*',
- 'ng.?*',
- 'vlan.?*',
- 'pflog.?*',
- 'pfsync.?*',
- 'enc.?*',
- 'tun.?*',
- 'carp.?*'
- );
+ $vfaces = array (
+ 'bridge',
+ 'ppp',
+ 'sl',
+ 'gif',
+ 'faith',
+ 'lo',
+ 'ng',
+ 'vlan',
+ 'pflog',
+ 'pfsync',
+ 'enc',
+ 'tun',
+ 'carp'
+ );
}
switch($mode) {
case "active":
OpenPOWER on IntegriCloud