Blame extensions/libxt_TOS.man

Packit 7b22a4
This module sets the Type of Service field in the IPv4 header (including the
Packit 7b22a4
"precedence" bits) or the Priority field in the IPv6 header. Note that TOS
Packit 7b22a4
shares the same bits as DSCP and ECN. The TOS target is only valid in the
Packit 7b22a4
\fBmangle\fP table.
Packit 7b22a4
.TP
Packit 7b22a4
\fB\-\-set\-tos\fP \fIvalue\fP[\fB/\fP\fImask\fP]
Packit 7b22a4
Zeroes out the bits given by \fImask\fP (see NOTE below) and XORs \fIvalue\fP
Packit 7b22a4
into the TOS/Priority field. If \fImask\fP is omitted, 0xFF is assumed.
Packit 7b22a4
.TP
Packit 7b22a4
\fB\-\-set\-tos\fP \fIsymbol\fP
Packit 7b22a4
You can specify a symbolic name when using the TOS target for IPv4. It implies
Packit 7b22a4
a mask of 0xFF (see NOTE below). The list of recognized TOS names can be
Packit 7b22a4
obtained by calling iptables with \fB\-j TOS \-h\fP.
Packit 7b22a4
.PP
Packit 7b22a4
The following mnemonics are available:
Packit 7b22a4
.TP
Packit 7b22a4
\fB\-\-and\-tos\fP \fIbits\fP
Packit 7b22a4
Binary AND the TOS value with \fIbits\fP. (Mnemonic for \fB\-\-set\-tos
Packit 7b22a4
0/\fP\fIinvbits\fP, where \fIinvbits\fP is the binary negation of \fIbits\fP.
Packit 7b22a4
See NOTE below.)
Packit 7b22a4
.TP
Packit 7b22a4
\fB\-\-or\-tos\fP \fIbits\fP
Packit 7b22a4
Binary OR the TOS value with \fIbits\fP. (Mnemonic for \fB\-\-set\-tos\fP
Packit 7b22a4
\fIbits\fP\fB/\fP\fIbits\fP. See NOTE below.)
Packit 7b22a4
.TP
Packit 7b22a4
\fB\-\-xor\-tos\fP \fIbits\fP
Packit 7b22a4
Binary XOR the TOS value with \fIbits\fP. (Mnemonic for \fB\-\-set\-tos\fP
Packit 7b22a4
\fIbits\fP\fB/0\fP. See NOTE below.)
Packit 7b22a4
.PP
Packit 7b22a4
NOTE: In Linux kernels up to and including 2.6.38, with the exception of
Packit 7b22a4
longterm releases 2.6.32 (>=.42), 2.6.33 (>=.15), and 2.6.35 (>=.14), there is
Packit 7b22a4
a bug whereby IPv6 TOS mangling does not behave as documented and differs from
Packit 7b22a4
the IPv4 version. The TOS mask indicates the bits one wants to zero out, so it
Packit 7b22a4
needs to be inverted before applying it to the original TOS field. However, the
Packit 7b22a4
aformentioned kernels forgo the inversion which breaks --set-tos and its
Packit 7b22a4
mnemonics.