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