Blame extensions/libxt_MARK.man

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