Stefano Sabatini | 8f4c67f | 2007-11-12 06:02:13 +0000 | [diff] [blame] | 1 | This module matches packets based on some statistic condition. |
| 2 | It supports two distinct modes settable with the |
Jan Engelhardt | fea74bf | 2009-01-12 04:53:18 +0100 | [diff] [blame] | 3 | \fB\-\-mode\fP |
Stefano Sabatini | 8f4c67f | 2007-11-12 06:02:13 +0000 | [diff] [blame] | 4 | option. |
Jan Engelhardt | aeafdb8 | 2008-08-12 11:42:04 +0200 | [diff] [blame] | 5 | .PP |
Stefano Sabatini | 8f4c67f | 2007-11-12 06:02:13 +0000 | [diff] [blame] | 6 | Supported options: |
| 7 | .TP |
Jan Engelhardt | fea74bf | 2009-01-12 04:53:18 +0100 | [diff] [blame] | 8 | \fB\-\-mode\fP \fImode\fP |
Stefano Sabatini | 8f4c67f | 2007-11-12 06:02:13 +0000 | [diff] [blame] | 9 | Set the matching mode of the matching rule, supported modes are |
| 10 | .B random |
| 11 | and |
| 12 | .B nth. |
| 13 | .TP |
Jan Engelhardt | fea74bf | 2009-01-12 04:53:18 +0100 | [diff] [blame] | 14 | \fB\-\-probability\fP \fIp\fP |
Stefano Sabatini | 8f4c67f | 2007-11-12 06:02:13 +0000 | [diff] [blame] | 15 | Set the probability from 0 to 1 for a packet to be randomly |
| 16 | matched. It works only with the |
| 17 | .B random |
| 18 | mode. |
| 19 | .TP |
Jan Engelhardt | fea74bf | 2009-01-12 04:53:18 +0100 | [diff] [blame] | 20 | \fB\-\-every\fP \fIn\fP |
Stefano Sabatini | 8f4c67f | 2007-11-12 06:02:13 +0000 | [diff] [blame] | 21 | Match one packet every nth packet. It works only with the |
| 22 | .B nth |
| 23 | mode (see also the |
Jan Engelhardt | fea74bf | 2009-01-12 04:53:18 +0100 | [diff] [blame] | 24 | \fB\-\-packet\fP |
Stefano Sabatini | 8f4c67f | 2007-11-12 06:02:13 +0000 | [diff] [blame] | 25 | option). |
| 26 | .TP |
Jan Engelhardt | fea74bf | 2009-01-12 04:53:18 +0100 | [diff] [blame] | 27 | \fB\-\-packet\fP \fIp\fP |
| 28 | Set the initial counter value (0 <= p <= n\-1, default 0) for the |
Stefano Sabatini | 8f4c67f | 2007-11-12 06:02:13 +0000 | [diff] [blame] | 29 | .B nth |
| 30 | mode. |