Debian Codegraph @

upstream/debian-unstable/man8/tc-skbedit.8

raw
1 .TH "SKB editing action in tc" 8 "12 Jan 2015" "iproute2" "Linux"
2
3 .SH NAME
4 skbedit - SKB editing action
5 .SH SYNOPSIS
6 .in +8
7 .ti -8
8 .BR tc " ... " "action skbedit " [ " queue_mapping
9 .IR QUEUE_MAPPING " ] ["
10 .B priority
11 .IR PRIORITY " ] ["
12 .BI mark " MARK\fR[\fB/\fIMASK] ] ["
13 .B ptype
14 .IR PTYPE " ] ["
15 .BR inheritdsfield " ]"
16 .SH DESCRIPTION
17 The
18 .B skbedit
19 action allows one to change a packet's associated meta data. It complements the
20 .B pedit
21 action, which in turn allows one to change parts of the packet data itself.
22
23 The most unique feature of
24 .B skbedit
25 is its ability to decide over which queue of an interface with multiple
26 transmit queues the packet is to be sent out. The number of available transmit
27 queues is reflected by sysfs entries within
28 .I /sys/class/net/<interface>/queues
29 with name
30 .I tx-N
31 (where
32 .I N
33 is the actual queue number).
34 .SH OPTIONS
35 .TP
36 .BI queue_mapping " QUEUE_MAPPING"
37 Override the packet's transmit queue. Useful when applied to packets transmitted
38 over MQ-capable network interfaces.
39 .I QUEUE_MAPPING
40 is an unsigned 16bit value in decimal format.
41 .TP
42 .BI priority " PRIORITY"
43 Override the packet classification decision.
44 .I PRIORITY
45 is either
46 .BR root ", " none
47 or a hexadecimal major class ID optionally followed by a colon
48 .RB ( : )
49 and a hexadecimal minor class ID.
50 .TP
51 .BI mark " MARK\fR[\fB/\fIMASK]"
52 Change the packet's firewall mark value.
53 .I MARK
54 is an unsigned 32bit value in automatically detected format (i.e., prefix with
55 .RB ' 0x '
56 for hexadecimal interpretation, etc.).
57 .I MASK
58 defines the 32-bit mask selecting bits of mark value. Default is 0xffffffff.
59 .TP
60 .BI ptype " PTYPE"
61 Override the packet's type. Useful for setting packet type to host when
62 needing to allow ingressing packets with the wrong MAC address but
63 correct IP address.
64 .I PTYPE
65 is one of: host, otherhost, broadcast, multicast
66 .TP
67 .BI inheritdsfield
68 Override the packet classification decision, and any value specified with
69 .BR priority ", "
70 using the information stored in the Differentiated Services Field of the
71 IPv6/IPv4 header (RFC2474).
72 .SH SEE ALSO
73 .BR tc (8),
74 .BR tc-pedit (8)