MarkTarget¶
- class MarkTarget(mark: Optional[int] = None)[source]¶
This class provides access to the
MARKtarget- Parameters:
mark – value used to set the mark value in the packet
- get_mark() Optional[int]¶
Returns the mark value set by this target
- get_mask() Optional[int]¶
Returns the mask used by this target
- get_op() Optional[int]¶
Returns the operation
- Return type:
an integer with one of the following values: SET, XSET, AND, OR, XOR, or
None
- get_target_name() str¶
Returns the target name
- is_terminating() bool¶
Returns
Trueif this is a terminating target
- set_mark(value: int, mask: Optional[int] = None) Target¶
Perform the operation:
mark = (mark AND NOT(mask)) OR value
If
maskis not present, the operation becomesmark = value.