Jan Engelhardt | 0720c12 | 2008-01-20 13:22:42 +0000 | [diff] [blame] | 1 | This module matches the 8-bit Type of Service field in the IPv4 header (i.e. |
| 2 | including the "Precedence" bits) or the (also 8-bit) Priority field in the IPv6 |
| 3 | header. |
| 4 | .TP |
Jan Engelhardt | fea74bf | 2009-01-12 04:53:18 +0100 | [diff] [blame] | 5 | [\fB!\fP] \fB\-\-tos\fP \fIvalue\fP[\fB/\fP\fImask\fP] |
Jan Engelhardt | 0720c12 | 2008-01-20 13:22:42 +0000 | [diff] [blame] | 6 | Matches packets with the given TOS mark value. If a mask is specified, it is |
| 7 | logically ANDed with the TOS mark before the comparison. |
| 8 | .TP |
Jan Engelhardt | fea74bf | 2009-01-12 04:53:18 +0100 | [diff] [blame] | 9 | [\fB!\fP] \fB\-\-tos\fP \fIsymbol\fP |
Jan Engelhardt | 0720c12 | 2008-01-20 13:22:42 +0000 | [diff] [blame] | 10 | You can specify a symbolic name when using the tos match for IPv4. The list of |
Jan Engelhardt | fea74bf | 2009-01-12 04:53:18 +0100 | [diff] [blame] | 11 | recognized TOS names can be obtained by calling iptables with \fB\-m tos \-h\fP. |
Jan Engelhardt | 0720c12 | 2008-01-20 13:22:42 +0000 | [diff] [blame] | 12 | Note that this implies a mask of 0x3F, i.e. all but the ECN bits. |