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