summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-05-28 05:36:36 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-05-28 05:36:36 +0000
commitccee9329158fae8aa6b6f720660d7293b33d3366 (patch)
treecf5dc1d56dd65966f5ee149fd21f069228e92fde /etc/inc
parent77720bd39513c95820d37d2ff5f776e4d0856a72 (diff)
downloadpfsense-ccee9329158fae8aa6b6f720660d7293b33d3366.zip
pfsense-ccee9329158fae8aa6b6f720660d7293b33d3366.tar.gz
Kepp track of the number of bridges
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/filter.inc10
1 files changed, 4 insertions, 6 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 1fe87e1..1910eb3 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -180,6 +180,7 @@ function filter_configure() {
echo "\t{$file}... ";
}
eval($text);
+ echo "done.\n";
}
}
}
@@ -384,17 +385,14 @@ function filter_generate_aliases() {
for ($j = 1; isset($config['interfaces']['opt' . $j]); $j++) {
$ifdescrs['opt' . $j] = "opt" . $j;
}
+ $bridgetracker = 0;
foreach ($ifdescrs as $ifdescr => $ifname) {
/* do not process tun interfaces */
if(stristr(filter_opt_interface_to_real($ifname), "tun") == true) continue;
$aliases .= filter_get_opt_interface_descr($ifname) . " = \"{ " . filter_opt_interface_to_real($ifname);
if($config['interfaces'][$ifname]['bridge'] <> "") {
- $aliases .= " bridge0 "; /************************************
- * warning! aktung! ugly hack! *
- * needs to be updated if we want *
- * to support more than one bridge *
- * concurrently *
- ************************************/
+ $aliases .= " bridge{$bridgetracker} ";
+ $bridgetracker++;
}
$aliases .= " }\"\n";
}
OpenPOWER on IntegriCloud