From 09301965fb6848640cf324b7ad77218233fc227d Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 18 Feb 2007 20:47:07 +0000 Subject: Only bind to one interface until bandwidthd bugs are fixed. --- packages/bandwidthd/bandwidthd.inc | 10 ++++++---- packages/bandwidthd/bandwidthd.xml | 8 ++++++++ 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 @@ -43,6 +43,14 @@ /usr/local/pkg/bandwidthd.inc + + active_interface + interface + The interface(s) that bandwidthd will bind to. + lan + + interfaces_selection + skipintervals Skip intervals -- cgit v1.2.3