[tcng] weird request

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 






Is there a way to count the childrens of a class i.e.

I want to do something like this.. Explantion :

$count = class(5).childrensCount;
$rate = (0.7/$count);

htb(rate 1Mbps, ceil 1Mbps) {
	class(5, rate 0.7Mbps, ceil 1Mbps) { 
		class(rate $rate Mbps, ceil 0.6Mbps) {};
		class(rate $rate Mbps, ceil 0.6Mbps) {};
		class(rate $rate Mbps, ceil 0.5Mbps) {};
		..............................
	}
	class(rate 0.3Mbps, ceil 1Mbps) {
		...similar thing
	}
}


So that rates scalles according to the count of the children...

raptor@unacs.bg
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux