[PATCH] new random match

Harald Welte laforge@gnumonks.org
Mon, 15 Oct 2001 17:46:41 +0200


On Sun, Oct 14, 2001 at 04:23:30PM +0800, Fabrice MARIE wrote:
> On Sunday 14 October 2001 06:13, Jan Srzednicki wrote:
> > Hello,
> > I miss one feature that I have in FreeBSD's ipfw: probability match. I
> > think such a module would be very simple (well, except for the part of
> > choosing apropriate PRNG - I think Mersenne Twister would be the best
> > choice). It could work like this:
> > iptables -A something -m random --random-match X -j something
> > [...]
> 
> Hello,
> 
> As promised, attached is the 'ramdom' match patch
> to the current patch-o-matic CVS tree.

applied to CVS now

-- 
Live long and prosper
- Harald Welte / laforge@gnumonks.org               http://www.gnumonks.org/
============================================================================
GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M- 
V-- PS+ PE-- Y+ PGP++ t++ 5-- !X !R tv-- b+++ DI? !D G+ e* h+ r% y+(*)