aboutsummaryrefslogtreecommitdiffstats
path: root/packages/bandwidthd
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-02-18 20:47:07 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-02-18 20:47:07 +0000
commit09301965fb6848640cf324b7ad77218233fc227d (patch)
tree6f7a70f9a5ac06200f48e0724c4a06147860bbf2 /packages/bandwidthd
parent07e4d1306efb67488996d81fb1bae7dc97cc2a86 (diff)
downloadpfsense-packages-09301965fb6848640cf324b7ad77218233fc227d.tar.gz
pfsense-packages-09301965fb6848640cf324b7ad77218233fc227d.tar.bz2
pfsense-packages-09301965fb6848640cf324b7ad77218233fc227d.zip
Only bind to one interface until bandwidthd bugs are fixed.
Diffstat (limited to 'packages/bandwidthd')
-rw-r--r--packages/bandwidthd/bandwidthd.inc10
-rw-r--r--packages/bandwidthd/bandwidthd.xml8
2 files changed, 14 insertions, 4 deletions
diff --git a/packages/bandwidthd/bandwidthd.inc b/packages/bandwidthd/bandwidthd.inc
index d04f14c9..5b487a39 100644
--- a/packages/bandwidthd/bandwidthd.inc
+++ b/packages/bandwidthd/bandwidthd.inc
@@ -71,12 +71,14 @@ function bandwidthd_install_config() {
if($skip_intervals)
$skip_intervals = "skip_intervals $skip_intervals\n";
+ $ifdescrs = $config['installedpackages']['bandwidthd']['config'][0]['active_interface'];
+
/* initialize to "" */
$subnets = "";
- $ifdescrs = array("lan", "wan");
- for ($j = 1; isset($config['interfaces']['opt' . $j]); $j++) {
- $ifdescrs['opt' . $j] = "opt" . $j;
- }
+ //$ifdescrs = array("lan", "wan");
+ //for ($j = 1; isset($config['interfaces']['opt' . $j]); $j++) {
+ //$ifdescrs['opt' . $j] = "opt" . $j;
+ //}
foreach($ifdescrs as $int) {
/* calculate interface subnet information */
$ifcfg = &$config['interfaces'][$int];
diff --git a/packages/bandwidthd/bandwidthd.xml b/packages/bandwidthd/bandwidthd.xml
index 1c991833..bdad0605 100644
--- a/packages/bandwidthd/bandwidthd.xml
+++ b/packages/bandwidthd/bandwidthd.xml
@@ -44,6 +44,14 @@
<include_file>/usr/local/pkg/bandwidthd.inc</include_file>
<fields>
<field>
+ <fieldname>active_interface</fieldname>
+ <fielddescr>interface</fielddescr>
+ <description>The interface(s) that bandwidthd will bind to.</description>
+ <default_value>lan</default_value>
+ <required/>
+ <type>interfaces_selection</type>
+ </field>
+ <field>
<fieldname>skipintervals</fieldname>
<fielddescr>Skip intervals</fielddescr>
<description></description>