lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | This module matches packets based on some statistic condition. |
| 2 | It supports two distinct modes settable with the |
| 3 | \fB\-\-mode\fP |
| 4 | option. |
| 5 | .PP |
| 6 | Supported options: |
| 7 | .TP |
| 8 | \fB\-\-mode\fP \fImode\fP |
| 9 | Set the matching mode of the matching rule, supported modes are |
| 10 | .B random |
| 11 | and |
| 12 | .B nth. |
| 13 | .TP |
| 14 | \fB\-\-probability\fP \fIp\fP |
| 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 |
| 20 | \fB\-\-every\fP \fIn\fP |
| 21 | Match one packet every nth packet. It works only with the |
| 22 | .B nth |
| 23 | mode (see also the |
| 24 | \fB\-\-packet\fP |
| 25 | option). |
| 26 | .TP |
| 27 | \fB\-\-packet\fP \fIp\fP |
| 28 | Set the initial counter value (0 <= p <= n\-1, default 0) for the |
| 29 | .B nth |
| 30 | mode. |