[Click] Query regarding srcr.click configuration file

Vishwas Dubey dubey.vishwas at gmail.com
Wed Sep 3 07:08:55 EDT 2008


Hi,

I am trying to understand and analyze srcr.click configuration file from
roofnet package. In this file there are some elements that are user defined
(like GatewaySelector, SetSRChecksum, ETTStat, SRForwarder etc.) and I don't
see the description of these elements anywhere on the click website (
click at amsterdam.lcs.mit.edu). I want to know the exact c++ definition of
these elements. Where can I find it..??

I have gone through the theory of Compound element class. As per my
understanding a user can define his class via elementclass statement without
writing c++ code. But the click statements that are put inside the
elementclass statement should be valid ones, in the sense that the element
class name should be from builtin element classes of the click package
unless you are going for nested compound element class. But the statements
inside the innermost nested element class should be from the builtin element
classes of the click package . Right..?? Correct me if I am wrong. As an
example

elementclass Example {
  s :: InfiniteSource; c :: Counter; d :: Discard;
  s -> c -> d;
}

In the above example the click statements inside the elementclass Example
are all builtin click element classes (the corresponding c++ code is
supplied with the click package itself which is linked and compiled at
runtime). How about the user defined element classes in the srcr.click
configuration file?  Where can I find the description for these classes or
the c++ code for them. I am new to writing programs in click and so I may
sound silly at this point in time. I am running this roofnet configuration
script on Soekris board. Any help is much appreciated.

Thanks,
Vishwas.


More information about the click mailing list