[Click] using -h option

Eddie Kohler kohler at cs.ucla.edu
Thu Jul 29 10:02:39 EDT 2004


Lan Xue wrote:
> Hi,
> 
> I have trouble using the -h option when running click. I use
> a Queue element with parameter 1000 in the conf file and I want to check
> the packet drop. So I passed -h Queue.drops, however it reported with "no
> element matching 'Queue'".

Hi Lan,

The -h option takes element *names*, not element classes.  If you have a config like

    whatever -> Queue -> whatever;

the Queue is given an "anonymous name" of the form "Queue at 914".  There is no 
element in the configuration with the name "Queue".

So the way to get what you want is either to provide an explicit name for the 
Queue --

    whatever -> q :: Queue -> whatever;       then say  -h q.drops

or to say -h "*.drops", which will report all "drops" handlers.

Nevertheless, since your syntax actually makes sense, I'm going to add it as an 
extension.

Eddie


More information about the click mailing list