blob: 8fc3b293e24c3b66918c692a6fd226eb2d9c090d [file] [log] [blame]
Stefano Sabatini8f4c67f2007-11-12 06:02:13 +00001This module matches packets based on some statistic condition.
2It supports two distinct modes settable with the
Jan Engelhardtfea74bf2009-01-12 04:53:18 +01003\fB\-\-mode\fP
Stefano Sabatini8f4c67f2007-11-12 06:02:13 +00004option.
Jan Engelhardtaeafdb82008-08-12 11:42:04 +02005.PP
Stefano Sabatini8f4c67f2007-11-12 06:02:13 +00006Supported options:
7.TP
Jan Engelhardtfea74bf2009-01-12 04:53:18 +01008\fB\-\-mode\fP \fImode\fP
Stefano Sabatini8f4c67f2007-11-12 06:02:13 +00009Set the matching mode of the matching rule, supported modes are
10.B random
11and
12.B nth.
13.TP
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010014\fB\-\-probability\fP \fIp\fP
Stefano Sabatini8f4c67f2007-11-12 06:02:13 +000015Set the probability from 0 to 1 for a packet to be randomly
16matched. It works only with the
17.B random
18mode.
19.TP
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010020\fB\-\-every\fP \fIn\fP
Stefano Sabatini8f4c67f2007-11-12 06:02:13 +000021Match one packet every nth packet. It works only with the
22.B nth
23mode (see also the
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010024\fB\-\-packet\fP
Stefano Sabatini8f4c67f2007-11-12 06:02:13 +000025option).
26.TP
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010027\fB\-\-packet\fP \fIp\fP
28Set the initial counter value (0 <= p <= n\-1, default 0) for the
Stefano Sabatini8f4c67f2007-11-12 06:02:13 +000029.B nth
30mode.