mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Add nf tables relational operator constants to use for Comparison operation.
PiperOrigin-RevId: 658544703
This commit is contained in:
committed by
gVisor bot
parent
19ab27f982
commit
3c98aab6f8
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user