[Click] regd bandwidth

nivethitha kumar k_nivethitha at yahoo.co.in
Mon Feb 28 22:54:10 EST 2005


dear sir,
we have been using bandwidth rated spiltter in our
code .its really puzzling how the rate handler always
gives the same result,even if we pass a value to it.

this is our code,

c::IPClassifier(src host 10.1.8.10, src host
10.1.8.12, -);
b1::BandwidthRatedSplitter(5kbps);
b2::BandwidthRatedSplitter(5kbps);
b3::BandwidthRatedSplitter(5kbps);

p::PrioSched;

//FromDevice(eth0)
elementclass band{	
input->c;
c[0]			->Queue->b1[0]->Queue->Print(okOne)
			->[0]p;

c[1]			b2[0]->Queue->[1]p;
c[2]			b3[0]->Queue->[2]p;
PokeHandlers(write b1.rate 5);
PokeHandlers(read b2.rate);
b1[1]->Print(one)->Discard;
b2[1]->Print(two)->Discard;
b3[1]->Print(three)->Discard;

p->output
};

b::band
FromDevice(eth0)->b->
ToDevice(eth0);

when we open the rate handler file ot always shows
10kbps.......kindly let us know wat we are missing

yours sincerely
Nivethitha


________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony


More information about the click mailing list