Add nf tables relational operator constants to use for Comparison operation.

PiperOrigin-RevId: 658544703
This commit is contained in:
Jayden Nyamiaka
2024-08-01 14:47:57 -07:00
committed by gVisor bot
parent 19ab27f982
commit 3c98aab6f8
+12
View File
@@ -80,3 +80,15 @@ const (
// Return to the topmost chain on the jump stack.
NFT_RETURN = -5
)
// Nf table relational operators.
// Used by the nft comparison operation to compare values in registers.
// These correspond to enum values in include/uapi/linux/netfilter/nf_tables.h.
const (
NFT_CMP_EQ = iota // equal
NFT_CMP_NEQ // not equal
NFT_CMP_LT // less than
NFT_CMP_LTE // less than or equal to
NFT_CMP_GT // greater than
NFT_CMP_GTE // greater than or equal to
)