libxt_MARK.man revision bc57906530df924324efef494a4fcff65d25e4ce
1This target is used to set the Netfilter mark value associated with the packet.
2The target can only be used in the \fBmangle\fR table. It can, for example, be
3used in conjunction with routing based on fwmark (needs iproute2). The mark
4field is 32 bits wide.
5.TP
6\fB\-\-set\-xmark\fP \fIvalue\fP[\fB/\fP\fImask\fP]
7Zeroes out the bits given by \fImask\fR and XORs \fIvalue\fR into the packet
8mark ("nfmark"). If \fImask\fR is omitted, 0xFFFFFFFF is assumed.
9.TP
10\fB\-\-set\-mark\fP \fIvalue\fP[\fB/\fP\fImask\fP]
11Zeroes out the bits given by \fImask\fR and ORs \fIvalue\fR into the packet
12mark. If \fImask\fR is omitted, 0xFFFFFFFF is assumed.
13.PP
14The following mnemonics are available:
15.TP
16\fB\-\-and\-mark\fP \fIbits\fP
17Binary AND the nfmark with \fIbits\fR. (Mnemonic for \fB\-\-set\-xmark
180/\fR\fIinvbits\fR, where \fIinvbits\fR is the binary negation of \fIbits\fR.)
19.TP
20\fB\-\-or\-mark\fP \fIbits\fP
21Binary OR the nfmark with \fIbits\fR. (Mnemonic for \fB\-\-set\-xmark\fP
22\fIbits\fR\fB/\fR\fIbits\fR.)
23.TP
24\fB\-\-xor\-mark\fP \fIbits\fP
25Binary XOR the nfmark with \fIbits\fR. (Mnemonic for \fB\-\-set\-xmark\fP
26\fIbits\fR\fB/0\fR.)
27