Endpoint configuration · GraphQL type

CmpExpression type

CmpExpression represents an nftables expression for comparing a value held in a register against a constant data value.

Fields

Field Name Description
op - NftCmpOp! The comparison operator to use.
register - NftRegister! The register holding the value to be compared.
data - Binary! The constant data value against which the register's value will be compared.

Used by

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

Example

Example

{"op": "EQUALS", "register": "VERDICT", "data": Binary}