Endpoint configuration · GraphQL type

BitwiseExpression type

Perform bit-level operations (AND, OR, XOR, shifts) on packet data or metadata values.

Fields

Field Name Description
sourceRegister - NftRegister! Register index holding the input value.
destRegister - NftRegister! Register index where the result is stored.
len - Uint32! Number of bytes to operate on.
mask - Binary! Bitmask applied with AND.
xor - Binary! Bitmask applied with XOR.

Used by

  • ChainExpression union: A union of all possible nftables chain expression types.

Example

Example

{
  "sourceRegister": "VERDICT",
  "destRegister": "VERDICT",
  "len": "1073741824",
  "mask": Binary,
  "xor": Binary
}