[Click] Stupid click question: Counter and a handler...

rchertov at purdue.edu rchertov at purdue.edu
Thu Dec 8 14:44:02 EST 2005


Quoting Nicholas Weaver <nweaver at icsi.berkeley.edu>:

> 
> I want to use the Counter or similar to print out a count of packets
> received (with a message) every N bytes.

I think a quick hack in the couter itself can do this, as Click already supports
the ability to output various numbers to the terminal via the Print element.

Roman

> 
> Does someone have an example of how to do this?
> 
> Thanks.
> 
> -- 
> Nicholas C. Weaver                               nweaver at icsi.berkeley.edu
>      This message has been ROT-13 encrypted twice for higher security.
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
> 





More information about the click mailing list