summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_queues.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-01-17 00:17:34 +0000
committerErmal Luçi <eri@pfsense.org>2008-01-17 00:17:34 +0000
commit6cca66e9ef24bd204b5a4309af57e0f73ef28745 (patch)
tree7026ae97beca71ddd24fe7d5802e0a8468520b2e /usr/local/www/status_queues.php
parent92125c97b95c34e19f04a7bd24b0c018267c9c7e (diff)
downloadpfsense-6cca66e9ef24bd204b5a4309af57e0f73ef28745.zip
pfsense-6cca66e9ef24bd204b5a4309af57e0f73ef28745.tar.gz
Show the user the interface the queue is located to make it easier now that the same queue name is used on multiple interfaces.
Diffstat (limited to 'usr/local/www/status_queues.php')
-rwxr-xr-xusr/local/www/status_queues.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/usr/local/www/status_queues.php b/usr/local/www/status_queues.php
index 73ef55d..b27d8bb 100755
--- a/usr/local/www/status_queues.php
+++ b/usr/local/www/status_queues.php
@@ -45,10 +45,21 @@ $a_queues = array();
$pfctl_vsq = `/sbin/pfctl -vsq`;
$pfctl_vsq_array = split("\n", $pfctl_vsq);
+$if = "";
foreach($pfctl_vsq_array as $pfctl) {
if (preg_match_all("/queue\s+(\w+)\s+/",$pfctl,$match_array))
if(stristr($match_array[1][0],"root_")==false)
- $a_queues[] = $match_array[1][0];
+ $a_queues[] = $match_array[1][0] . " on {$if}" ;
+ else {
+ $if = stristr($match_array[1][0], "root_");
+ $if = preg_replace("(root_)", "", $if);
+ foreach ($config['interfaces'] as $ifkey => $ifdesc) {
+ if ($ifdesc['if'] == $if) {
+ $if = $ifkey;
+ break;
+ }
+ }
+ }
}
$pgtitle = array("Status","Traffic shaper","Queues");
OpenPOWER on IntegriCloud