TC-TCINDEX(8)
๐ TC-TCINDEX โ the traffic control index filter, bestie edition ๐
okay so like. this is a page from the Linux manual set, and the manual name is tc-tcindex, section 8 (that's the admin-commands girlies section, iykyk). sit down, grab a strawberry, we're matching packets ๐
โจ NAME โจ
tcindex โ the traffic control index filter ๐
๐ฆ SYNOPSIS ๐ฆ
tc filter ... tcindex [ hash SIZE ] [ mask MASK ] [ shift SHIFT ] [
pass_on | fall_through ] [ classid CLASSID ] [ action
ACTION_SPEC ]
that's it. that's the whole summoning ritual โจ
๐ธ DESCRIPTION ๐ธ
this filter lets you match packets based on their tcindex field value. and what even is that, you ask? it's literally the combo of the DSCP and ECN fields exactly as they show up in IPv4 and IPv6 headers. no cap. it's giving "the header fields said let me introduce myself" ๐
๐ OPTIONS ๐ (the full menu, no skips, periodt)
action ACTION_SPECโ slaps an action from the generic actions framework onto any packet that matches. your matching packets get a lil makeover ๐ซถclassid CLASSIDโ pushes matching packets into the class identified by CLASSID. like a bouncer but the good kind, walking your packets straight to their section of the club ๐hash SIZEโ the hash table size, in entries. defaults to 64. yes babes, sixty-four. iconic number.mask MASKโ an optional bitmask that gets binary-ANDed with the packet's tcindex field before it's used. bit math said "let me filter the vibe first" โจshift SHIFTโ how many bits to right-shift the packet's tcindex value before use. and listen: if a mask has been set, the masking happens BEFORE the shifting. order matters, bestie, don't get it twisted ๐pass_onโ if this flag is set, then failing to find a class for the resulting ID makes the filter fail and leads to the next filter being consulted. it's giving "not my problem, next up" ๐ญfall_throughโ the exact opposite ofpass_on, and also the default. the filter will classify the packet even if there's no class present for the resulting class ID. it just... does it. main character energy, no class needed ๐
๐ SEE ALSO ๐
tc(8)โ go read it, it's the mothership ๐ง
๐ real talk though:pass_onandfall_throughare opposites and only one of them is the default, so if you're out here guessing, the vibes will not save you. check the flag. every time.
that's the whole page, bestie โ every option, every default, every field, all accounted for. no facts were harmed in the making of this rewrite, only prose got a glow-up ๐
๐ธ this page came from iproute2, dated 21 Oct 2015, and it's titled Traffic control index filter(8). mwah. go configure something. ๐โจ
๐ฆ where this page comes from
- debian bookworm: iproute2 6.1.0-3 ยท GPL-2.0-only
- ubuntu noble: iproute2 6.1.0-1ubuntu6 ยท GPL-2.0-only
- ubuntu noble: iproute2 6.1.0-1ubuntu6.4 ยท GPL-2.0-only
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms