Blame man/man8/tc-skbedit.8

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