• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1This module matches packets based on some statistic condition.
2It supports two distinct modes settable with the
3\fB\-\-mode\fP
4option.
5.PP
6Supported options:
7.TP
8\fB\-\-mode\fP \fImode\fP
9Set the matching mode of the matching rule, supported modes are
10.B random
11and
12.B nth.
13.TP
14[\fB!\fP] \fB\-\-probability\fP \fIp\fP
15Set the probability for a packet to be randomly matched. It only works with the
16\fBrandom\fP mode. \fIp\fP must be within 0.0 and 1.0. The supported
17granularity is in 1/2147483648th increments.
18.TP
19[\fB!\fP] \fB\-\-every\fP \fIn\fP
20Match one packet every nth packet. It works only with the
21.B nth
22mode (see also the
23\fB\-\-packet\fP
24option).
25.TP
26\fB\-\-packet\fP \fIp\fP
27Set the initial counter value (0 <= p <= n\-1, default 0) for the
28.B nth
29mode.
30