[Click] Little element, random dropper...
Nicholas Weaver
nweaver at ICSI.Berkeley.EDU
Tue Jul 26 13:27:58 EDT 2005
On Tue, Jul 26, 2005 at 12:25:35PM -0500, rchertov at purdue.edu composed:
> 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.
D'oh! Why didn't I see it earlier? G!@#()!@*#)!@#
> 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.
> >
>
>
>
--
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