[Click] dynamic reconfiguration

Koen Beel koen.beel at gmail.com
Tue Aug 29 03:32:53 EDT 2006


Hi Hamza,

You can specify configuration parameters via a configuration string in
your click config file.
e.g.  FromDevice(eth0, PROMISC true)
If you write your own elements check for example the source of
FromDevice to see how to parse the configuration string. (method int
configure(Vector<String>, ErrorHandler))
[CLICKDIR/elements/linuxmodule/fromdevice.cc]

And if you want to reconfigure elements at runtime, you can use the
proclikefs in kernel mode. e.g. element Queue
http://www.read.cs.ucla.edu/click/elements/queue
This element has some handlers, some read-only, some read/write. If
you want to know the queue length just read (cat) 'length'. If you
want to set its capacity, write to 'capacity'.

Check section 'userdriver', 'linuxmodule' and 'language' at
http://www.read.cs.ucla.edu/click/docs for more info.

Also:
-http://pdos.csail.mit.edu/click/doxygen/annotated.html
-http://pdos.csail.mit.edu/click/doc/progman.html (not complete but usefull)
-search the click archives using google e.g. 'configuration
site:https://amsterdam.lcs.mit.edu/pipermail/click/'
-http://www.read.cs.ucla.edu/click/faq

On 8/29/06, Hamza <hamzamalik at gmail.com> wrote:
> Hi,
>
> We are quite new in Click architecture and are trying to implement a user
> level protocol .
> Can we reconfigure the protocol engine on run time? i.e we want our protocol
> to run dynamically without any hard coded information e.g addresses etc.
>
> Regards
>
> Hamza
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>


More information about the click mailing list