[Click] Little element, random dropper...

rchertov at purdue.edu rchertov at purdue.edu
Tue Jul 26 13:25:35 EDT 2005


Quoting Nicholas Weaver <nweaver at icsi.berkeley.edu>:

> 
>         For testing, I hacked up a simple little packet-dropper
> (sysadmin is having some problems, and needs a debugging tool to
> increase loss in a link).  It uses a 32 bit pRNG (RC5/3 round/32 bit)
> to decide whether to randomly drop a packet.

I believe RandomSample element does something similar, although I haven't
checked what RNG it uses.

Roman

> 
>         Since it might be useful for others as well, I'm sending it to
> the list.
> 
> The files:
> rand_drop.{cc,hh} the element itself
> rc5.{cc,hh} RC5 as a support file.
> 
> -- 
> Nicholas C. Weaver                               nweaver at icsi.berkeley.edu
>      This message has been ROT-13 encrypted twice for higher security.
> 





More information about the click mailing list