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...

[EMAIL PROTECTED]
_______________________________________________
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Reply via email to