blob: 7fcf8254737376270cd0697b17b9c5daef4a2777 [file] [log] [blame]
.TH "Traffic control index filter" 8 "21 Oct 2015" "iproute2" "Linux"
tcindex \- traffic control index filter
.in +8
.ti -8
.BR tc " " filter " ... " tcindex " [ " hash
.IR SIZE " ] [ "
.B mask
.IR MASK " ] [ "
.B shift
.IR SHIFT " ] [ "
.BR pas_on " | " fall_through " ] [ " classid
.IR CLASSID " ] [ "
.B action
This filter allows to match packets based on their
.B tcindex
field value, i.e. the combination of the DSCP and ECN fields as present in IPv4
and IPv6 headers.
.BI action " ACTION_SPEC"
Apply an action from the generic actions framework on matching packets.
.BI classid " CLASSID"
Push matching packets into the class identified by
.BI hash " SIZE"
Hash table size in entries to use. Defaults to 64.
.BI mask " MASK"
An optional bitmask to binary
.BR AND " to the packet's " tcindex
field before use.
.BI shift " SHIFT"
The number of bits to right-shift a packet's
.B tcindex
value before use. If a
.B mask
has been set, masking is done before shifting.
.B pass_on
If this flag is set, failure to find a class for the resulting ID will make the
filter fail and lead to the next filter being consulted.
.B fall_through
This is the opposite of
.B pass_on
and the default. The filter will classify the packet even if there is no class
present for the resulting class ID.
.BR tc (8)