creating an active router

Eddie Kohler kohler at icir.org
Fri May 31 00:21:10 EDT 2002


Hi,

> I want to create an active router. I want to write an element for
> procesing the active packets. This packets contain tcl code, and my element
> must execute the tcl interpreter. My doubt is if I must write the
> simple_action method or I must use tasks...

Since the element triggers its actions off receiving packets, it should use
simple_action() (or, alternatively, push() and/or pull()).

run_scheduled() is for actions triggered off timers, or that need to run
very frequently, independent of when packets arrive.

Eddie



More information about the click mailing list