Hi, You typically use Click handlers for this. Click elements expose data to users via handlers that can be accessed via /click filesystem if running kernel Click, or ControlSocket http://read.cs.ucla.edu/click/elements/controlsocket if running userlevel Click.
The click fs is similar to Linux's /proc system. For instance PollDevice exposes a count handler that returns the number of packets PollDevice has received from the input card. You would probably find the Counter element http://read.cs.ucla.edu/click/elements/counter and AverageCounter element http://read.cs.ucla.edu/click/elements/averagecounter most helpful. They expose handlers like rate, bit_rate etc. Obviously this means your userland apps need to monitor these handlers, there is no notification push from Click. Beyers On Thu, Feb 3, 2011 at 10:39 PM, shule ney <[email protected]> wrote: > Hi,all: > Is there any mechanism that the kernel mode click can notify the user-land > if there are packets coming? Here what I want to implement is telling the > userland whether there are packets coming and the coming rate. Thanks for > your guys' help :D. > _______________________________________________ > click mailing list > [email protected] > https://amsterdam.lcs.mit.edu/mailman/listinfo/click > _______________________________________________ click mailing list [email protected] https://amsterdam.lcs.mit.edu/mailman/listinfo/click
