Blame extensions/libxt_MARK.man

Packit Service d1fe03
This target is used to set the Netfilter mark value associated with the packet.
Packit Service d1fe03
It can, for example, be used in conjunction with routing based on fwmark (needs
Packit Service d1fe03
iproute2). If you plan on doing so, note that the mark needs to be set in the
Packit Service d1fe03
PREROUTING chain of the mangle table to affect routing.
Packit Service d1fe03
The mark field is 32 bits wide.
Packit Service d1fe03
.TP
Packit Service d1fe03
\fB\-\-set\-xmark\fP \fIvalue\fP[\fB/\fP\fImask\fP]
Packit Service d1fe03
Zeroes out the bits given by \fImask\fP and XORs \fIvalue\fP into the packet
Packit Service d1fe03
mark ("nfmark"). If \fImask\fP is omitted, 0xFFFFFFFF is assumed.
Packit Service d1fe03
.TP
Packit Service d1fe03
\fB\-\-set\-mark\fP \fIvalue\fP[\fB/\fP\fImask\fP]
Packit Service d1fe03
Zeroes out the bits given by \fImask\fP and ORs \fIvalue\fP into the packet
Packit Service d1fe03
mark. If \fImask\fP is omitted, 0xFFFFFFFF is assumed.
Packit Service d1fe03
.PP
Packit Service d1fe03
The following mnemonics are available:
Packit Service d1fe03
.TP
Packit Service d1fe03
\fB\-\-and\-mark\fP \fIbits\fP
Packit Service d1fe03
Binary AND the nfmark with \fIbits\fP. (Mnemonic for \fB\-\-set\-xmark
Packit Service d1fe03
0/\fP\fIinvbits\fP, where \fIinvbits\fP is the binary negation of \fIbits\fP.)
Packit Service d1fe03
.TP
Packit Service d1fe03
\fB\-\-or\-mark\fP \fIbits\fP
Packit Service d1fe03
Binary OR the nfmark with \fIbits\fP. (Mnemonic for \fB\-\-set\-xmark\fP
Packit Service d1fe03
\fIbits\fP\fB/\fP\fIbits\fP.)
Packit Service d1fe03
.TP
Packit Service d1fe03
\fB\-\-xor\-mark\fP \fIbits\fP
Packit Service d1fe03
Binary XOR the nfmark with \fIbits\fP. (Mnemonic for \fB\-\-set\-xmark\fP
Packit Service d1fe03
\fIbits\fP\fB/0\fP.)