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