Blame man/man8/tc-skbedit.8

Packit Service 3880ab
.TH "SKB editing action in tc" 8 "12 Jan 2015" "iproute2" "Linux"
Packit Service 3880ab
Packit Service 3880ab
.SH NAME
Packit Service 3880ab
skbedit - SKB editing action
Packit Service 3880ab
.SH SYNOPSIS
Packit Service 3880ab
.in +8
Packit Service 3880ab
.ti -8
Packit Service 3880ab
.BR tc " ... " "action skbedit " [ " queue_mapping
Packit Service 3880ab
.IR QUEUE_MAPPING " ] ["
Packit Service 3880ab
.B priority
Packit Service 3880ab
.IR PRIORITY " ] ["
Packit Service 3880ab
.BI mark " MARK\fR[\fB/\fIMASK] ] ["
Packit Service 3880ab
.B ptype
Packit Service 3880ab
.IR PTYPE " ] ["
Packit Service 3880ab
.BR inheritdsfield " ]"
Packit Service 3880ab
.SH DESCRIPTION
Packit Service 3880ab
The
Packit Service 3880ab
.B skbedit
Packit Service 3880ab
action allows to change a packet's associated meta data. It complements the
Packit Service 3880ab
.B pedit
Packit Service 3880ab
action, which in turn allows to change parts of the packet data itself.
Packit Service 3880ab
Packit Service 3880ab
The most unique feature of
Packit Service 3880ab
.B skbedit
Packit Service 3880ab
is its ability to decide over which queue of an interface with multiple
Packit Service 3880ab
transmit queues the packet is to be sent out. The number of available transmit
Packit Service 3880ab
queues is reflected by sysfs entries within
Packit Service 3880ab
.I /sys/class/net/<interface>/queues
Packit Service 3880ab
with name
Packit Service 3880ab
.I tx-N
Packit Service 3880ab
(where
Packit Service 3880ab
.I N
Packit Service 3880ab
is the actual queue number).
Packit Service 3880ab
.SH OPTIONS
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI queue_mapping " QUEUE_MAPPING"
Packit Service 3880ab
Override the packet's transmit queue. Useful when applied to packets transmitted
Packit Service 3880ab
over MQ-capable network interfaces.
Packit Service 3880ab
.I QUEUE_MAPPING
Packit Service 3880ab
is an unsigned 16bit value in decimal format.
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI priority " PRIORITY"
Packit Service 3880ab
Override the packet classification decision.
Packit Service 3880ab
.I PRIORITY
Packit Service 3880ab
is either
Packit Service 3880ab
.BR root ", " none
Packit Service 3880ab
or a hexadecimal major class ID optionally followed by a colon
Packit Service 3880ab
.RB ( : )
Packit Service 3880ab
and a hexadecimal minor class ID.
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI mark " MARK\fR[\fB/\fIMASK]"
Packit Service 3880ab
Change the packet's firewall mark value.
Packit Service 3880ab
.I MARK
Packit Service 3880ab
is an unsigned 32bit value in automatically detected format (i.e., prefix with
Packit Service 3880ab
.RB ' 0x '
Packit Service 3880ab
for hexadecimal interpretation, etc.).
Packit Service 3880ab
.I MASK
Packit Service 3880ab
defines the 32-bit mask selecting bits of mark value. Default is 0xffffffff.
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI ptype " PTYPE"
Packit Service 3880ab
Override the packet's type. Useful for setting packet type to host when
Packit Service 3880ab
needing to allow ingressing packets with the wrong MAC address but
Packit Service 3880ab
correct IP address.
Packit Service 3880ab
.I PTYPE
Packit Service 3880ab
is one of: host, otherhost, broadcast, multicast
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI inheritdsfield
Packit Service 3880ab
Override the packet classification decision, and any value specified with
Packit Service 3880ab
.BR priority ", "
Packit Service 3880ab
using the information stored in the Differentiated Services Field of the
Packit Service 3880ab
IPv6/IPv4 header (RFC2474).
Packit Service 3880ab
.SH SEE ALSO
Packit Service 3880ab
.BR tc (8),
Packit Service 3880ab
.BR tc-pedit (8)