Project

General

Profile

« Previous | Next » 

Revision 6cca66e9

Added by Ermal Luçi over 17 years ago

Show the user the interface the queue is located to make it easier now that the same queue name is used on multiple interfaces.

View differences:

usr/local/www/status_queues.php
45 45

  
46 46
$pfctl_vsq = `/sbin/pfctl -vsq`;
47 47
$pfctl_vsq_array = split("\n", $pfctl_vsq);
48
$if = "";
48 49
foreach($pfctl_vsq_array as $pfctl) {
49 50
	if (preg_match_all("/queue\s+(\w+)\s+/",$pfctl,$match_array))
50 51
		if(stristr($match_array[1][0],"root_")==false)
51
			$a_queues[] = $match_array[1][0];	
52
			$a_queues[] = $match_array[1][0] . " on {$if}" ;	
53
		else {
54
			$if = stristr($match_array[1][0], "root_");
55
			$if = preg_replace("(root_)", "", $if);
56
			foreach ($config['interfaces'] as $ifkey => $ifdesc) {
57
				if ($ifdesc['if'] == $if) {
58
					$if = $ifkey;
59
					break;
60
				}
61
			}
62
		}
52 63
}
53 64

  
54 65
$pgtitle = array("Status","Traffic shaper","Queues");

Also available in: Unified diff