changing trunk/trunk to trunk
[iptables.git] / extensions / libxt_TOS.man
1 This 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
3 shares the same bits as DSCP and ECN. The TOS target is only valid in the
4 \fBmangle\fR table.
5 .TP
6 \fB--set-tos\fR \fIvalue\fR[\fB/\fR\fImask\fR]
7 Zeroes out the bits given by \fImask\fR and XORs \fIvalue\fR into the
8 TOS/Priority field. If \fImask\fR is omitted, 0xFF is assumed.
9 .TP
10 \fB--set-tos\fR \fIsymbol\fR
11 You can specify a symbolic name when using the TOS target for IPv4. It implies
12 a mask of 0xFF. The list of recognized TOS names can be obtained by calling
13 iptables with \fB-j TOS -h\fR.
14 .PP
15 The following mnemonics are available:
16 .TP
17 \fB--and-tos\fR \fIbits\fR
18 Binary AND the TOS value with \fIbits\fR. (Mnemonic for \fB--set-tos
19 0/\fR\fIinvbits\fR, where \fIinvbits\fR is the binary negation of \fIbits\fR.)
20 .TP
21 \fB--or-tos\fR \fIbits\fR
22 Binary OR the TOS value with \fIbits\fR. (Mnemonic for \fB--set-tos\fR
23 \fIbits\fR\fB/\fR\fIbits\fR.)
24 .TP
25 \fB--xor-tos\fR \fIbits\fR
26 Binary XOR the TOS value with \fIbits\fR. (Mnemonic for \fB--set-tos\fR
27 \fIbits\fR\fB/0\fR.)