[Click] InfiniteSource problem and Madwifi beb problem

Eddie Kohler kohler at cs.ucla.edu
Mon Sep 18 22:42:40 EDT 2006


Hi Mike,

Mike Jennings wrote:
> 1. Regarding infinitesource: If one uses this element in userlevel
> click and sets active to false then later sets active to true the source
> does not come back up. I wonder why.

I actually do not see this behavior: it works fine for me to set active to 
false, then to true.  Here is the configuration I used to test.

i :: InfiniteSource -> c :: Counter -> Discard;
Script(wait 1ms,       /* i should send packets */
        print c.count,  /* should be > 0 */
        write i.active false,
        wait 1s,        /* set to inactive, wait, set to active */
        write i.active true,
        wait 5ms,
        print c.count,  /* should be > first count */
        stop)

This config prints
3999
8127
so everything is as expected.

Can you send a config?  Are you sure of your diagnosis?

I can't speak to madwifi, unfortunately.
Eddie


More information about the click mailing list