[Click] Problem with BandwidthMeter

Beyers Cronje bcronje at gmail.com
Tue May 15 18:48:17 EDT 2007


Hi Roberto,

There seems to be a bug in elements/standard/bandwidthmeter.hh
Change line 40 from:

const char *port_count() const        { return PORTS_1_1; }

To:

const char *port_count() const        { return "1/1-"; }

This should fix your problem.

Regards

Beyers


On 5/15/07, Roberto Riggio <rriggio at create-net.org> wrote:
>
> I'm using the following configuration:
>
> bw :: BandwidthMeter(20kBps);
>
> RatedSource(\<0800>, 1000)
> -> bw
> -> Print()
> -> Discard();
>
> bw[1] -> Discard;
>
> But when I launch click I get the following messages:
>
> /home/hamvil/src/wing/click-packages/aggregator/averageload.click:4: While
> configuring 'bw :: BandwidthMeter':
>   need 0 arguments, one less than the number of output ports
> /home/hamvil/src/wing/click-packages/aggregator/averageload.click:4: 'bw
> :: BandwidthMeter' has no output 1
> /home/hamvil/src/wing/click-packages/aggregator/averageload.click:12: '
> Discard at 5 :: Discard' input 0 unused
> Router could not be initialized!
>
> What am I doing wrong?
>
> Roberto
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>


More information about the click mailing list