Packet sample action in tc(8) Linux Packet sample action in tc(8) (NAME) tc-sample - (tc) (SYNOPSIS) tc ... action sample rate RATE group GROUP [ trunc SIZE ] [ index INDEX ] tc ... action sample index INDEX (DESCRIPTION) sample (classifier) . rate netlink psample . (truncation) . netlink . sample (index) sample . (SAMPLED PACKETS METADATA FIELDS) netlink psample netlink : PSAMPLE_ATTR_IIFINDEX . PSAMPLE_ATTR_OIFINDEX . (ingress) . PSAMPLE_ATTR_ORIGSIZE ( / truncation). PSAMPLE_ATTR_SAMPLE_GROUP psample . PSAMPLE_ATTR_GROUP_SEQ . psample . PSAMPLE_ATTR_SAMPLE_RATE . (OPTIONS) rate RATE . RATE . RATE . trunc SIZE . group GROUP psample . psample . index INDEX . . . . (EXAMPLES) eth0 psample : tc qdisc add dev eth0 handle ffff: ingress tc filter add dev eth0 parent ffff: matchall \ action sample rate 100 group 12 index 19 eth1 : tc qdisc add dev eth1 handle ffff: ingress tc filter add dev eth1 parent ffff: matchall \ action sample index 19 (SEE ALSO) tc(8) tc-matchall(8) psample(1) iproute2 31 Jan 2017 Packet sample action in tc(8)