PSAMPLE_ATTR_IIFINDEX The input interface index of the packet, if there is one.
PSAMPLE_ATTR_OIFINDEX The output interface index of the packet. This field is not relevant on ingress sampling
PSAMPLE_ATTR_ORIGSIZE The size of the original packet (before truncation)
PSAMPLE_ATTR_SAMPLE_GROUP The psample group the packet was sent to
PSAMPLE_ATTR_GROUP_SEQ A sequence number of the sampled packet. This number is incremented with each sampled packet of the current psample group
PSAMPLE_ATTR_SAMPLE_RATE The rate the packet was sampled with
rate " RATE" The packet sample rate. "RATE" is the expected ratio between observed packets and sampled packets. For example, "RATE" of 100 will lead to an average of one sampled packet out of every 100 observed.
trunc " SIZE" Upon set, defines the maximum size of the sampled packets, and causes truncation if needed
group " GROUP" The psample group the packet will be sent to. The psample module defines the concept of groups, which allows the user to match specific sampled packets in the case of multiple sampling rules, thus identify only the packets that came from a specific rule.
index " INDEX" Is a unique ID for an action. When creating new action instance, this parameter allows to set the new action index. When using existing action, this parameter allows to specify the existing action index. The index must 32bit unsigned integer greater than zero.
.EX tc qdisc add dev eth0 handle ffff: ingress tc filter add dev eth0 parent ffff: matchall \\ action sample rate 100 group 12 index 19
.EX tc qdisc add dev eth1 handle ffff: ingress tc filter add dev eth1 parent ffff: matchall \\ action sample index 19