changing trunk/trunk to trunk
[iptables.git] / extensions / libxt_MARK.man
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).
4 .TP
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.
8 .TP
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.
12 .PP
13 The following mnemonics are available:
14 .TP
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.)
18 .TP
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.)
22 .TP
23 \fB--xor-mark\fR \fIbits\fR
24 Binary XOR the nfmark with \fIbits\fR. (Mnemonic for \fB--set-xmark\fR
25 \fIbits\fR\fB/0\fR.)