libxt_TOS.man revision c6775d6c192f7e337360f238cc3ab224a406d5b8
1This module sets the Type of Service field in the IPv4 header (including the
2"precedence" bits) or the Priority field in the IPv6 header. Note that TOS
3shares the same bits as DSCP and ECN. The TOS target is only valid in the
4\fBmangle\fP table.
5.TP
6\fB\-\-set\-tos\fP \fIvalue\fP[\fB/\fP\fImask\fP]
7Zeroes out the bits given by \fImask\fP and XORs \fIvalue\fP into the
8TOS/Priority field. If \fImask\fP is omitted, 0xFF is assumed.
9.TP
10\fB\-\-set\-tos\fP \fIsymbol\fP
11You can specify a symbolic name when using the TOS target for IPv4. It implies
12a mask of 0xFF. The list of recognized TOS names can be obtained by calling
13iptables with \fB\-j TOS \-h\fP.
14.PP
15The following mnemonics are available:
16.TP
17\fB\-\-and\-tos\fP \fIbits\fP
18Binary AND the TOS value with \fIbits\fP. (Mnemonic for \fB\-\-set\-tos
190/\fP\fIinvbits\fP, where \fIinvbits\fP is the binary negation of \fIbits\fP.)
20.TP
21\fB\-\-or\-tos\fP \fIbits\fP
22Binary OR the TOS value with \fIbits\fP. (Mnemonic for \fB\-\-set\-tos\fP
23\fIbits\fP\fB/\fP\fIbits\fP.)
24.TP
25\fB\-\-xor\-tos\fP \fIbits\fP
26Binary XOR the TOS value with \fIbits\fP. (Mnemonic for \fB\-\-set\-tos\fP
27\fIbits\fP\fB/0\fP.)
28