TC-SKBEDIT(8)
๐ NAME ๐
okay so the manual name is skbedit, which is the SKB editing action in tc(8) ๐ bestie this one is lowkey iconic
โจ SYNOPSIS โจ
tc ... action skbedit [ queue_mapping QUEUE_MAPPING ] [ priority
PRIORITY ] [ mark MARK[/MASK] ] [ ptype PTYPE ] [ inheritdsfield
]
๐ฆ DESCRIPTION ๐ฆ
okay so the skbedit action lets you change a packet's associated meta data ๐
it's the sidekick to the pedit action, which is the one that changes parts of the packet data itself. they're a whole duo, no cap
the most unique feature of skbedit is that it can decide which queue of an interface with multiple transmit queues the packet gets sent out on ๐ฅ the number of available transmit queues shows up as sysfs entries in /sys/class/net/<interface>/queues named tx-N, where N is the actual queue number. it's giving main character energy โจ
๐ OPTIONS ๐
queue_mapping QUEUE_MAPPINGโ overrides the packet's transmit queue ๐ซถ it's especially useful when it's applied to packets going out over MQ-capable network interfaces.QUEUE_MAPPINGis an unsigned 16bit value in decimal formatpriority PRIORITYโ overrides the packet classification decision ๐PRIORITYis eitherroot,none, or a hexadecimal major class ID, optionally followed by a colon (:) and a hexadecimal minor class IDmark MARK[/MASK]โ changes the packet's firewall mark value โจMARKis an unsigned 32bit value in automatically detected format (so prefix with0xfor hexadecimal, and so on).MASKdefines the 32-bit mask that selects the bits of the mark value. the default is0xffffffff๐ptype PTYPEโ overrides the packet's type ๐ง this is super handy when you need to set the packet type tohostso ingressing packets with the wrong MAC address but the correct IP address still get through.PTYPEis one of:host,otherhost,broadcast,multicast๐inheritdsfieldโ overrides the packet classification decision, and any value specified withpriority, using the info stored in the Differentiated Services Field of the IPv6/IPv4 header (RFC2474) ๐ธ okay the way this one just takes over the vibe ๐ญ
๐ SEE ALSO ๐
tc(8), tc-pedit(8) ๐ซถ
bestie that's the whole tea ๐ต this page came from iproute2, dated 12 Jan 2015 ๐ ๐ฅ stay iconic, periodt ๐
๐ฆ where this page comes from
- alpine 3.22: iproute2-doc 6.15.0-r0 ยท GPL-2.0-or-later
- alpine 3.23: iproute2-doc 6.17.0-r0 ยท GPL-2.0-or-later
- alpine 3.24: iproute2-doc 7.0.0-r0 ยท GPL-2.0-or-later
- arch rolling: iproute2 7.2.0-1
- arch rolling: iproute2 7.3.0-1 ยท GPL-2.0-or-later
- centos-stream 10: iproute-tc 7.0.0-2.el10 ยท GPL-2.0-or-later
- centos-stream 9: iproute-tc 6.17.0-3.el9 ยท GPL-2.0-or-later
- debian bookworm: iproute2 6.1.0-3 ยท GPL-2.0-only
- debian trixie: iproute2 6.15.0-1 ยท GPL-2.0-only
- fedora 43: iproute-tc 6.14.0-2.fc43 ยท GPL-2.0-or-later
- fedora 44: iproute-tc 6.17.0-2.fc44 ยท GPL-2.0-or-later
- nixos 26.05: iproute2 7.0.0
- nixpkgs unstable: iproute2 7.2.0
- opensuse-leap 16.0: iproute2 6.12-160000.4.1 ยท GPL-2.0-only
- opensuse-leap 16.0: iproute2 6.12-160000.4.1 ยท GPL-2.0-only
- opensuse-leap 16.0: iproute2 6.12-160000.4.1 ยท GPL-2.0-only
- opensuse-leap 16.0: iproute2 6.12-160000.4.1 ยท 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
- ubuntu questing: iproute2 6.16.0-1ubuntu2
- ubuntu questing: iproute2 6.16.0-1ubuntu2.1 ยท GPL-2.0-only
- ubuntu questing: iproute2 6.16.0-1ubuntu2.2
- ubuntu resolute: iproute2 6.19.0-1ubuntu1 ยท GPL-2.0-only
- ubuntu resolute: iproute2 6.19.0-1ubuntu1.1 ยท GPL-2.0-only
- ubuntu stonking: iproute2 7.2.0-1ubuntu1 ยท GPL-2.0-only
- ๐ girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms