From 08e34478d3f500d49c98d0200de01fa999c5be76 Mon Sep 17 00:00:00 2001 From: Jayden Nyamiaka Date: Tue, 27 Aug 2024 10:22:05 -0700 Subject: [PATCH] Add netfilter range operation constants for nftables support. PiperOrigin-RevId: 668041076 --- pkg/abi/linux/nf_tables.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkg/abi/linux/nf_tables.go b/pkg/abi/linux/nf_tables.go index 36f4e568e..663fc6e57 100644 --- a/pkg/abi/linux/nf_tables.go +++ b/pkg/abi/linux/nf_tables.go @@ -93,6 +93,14 @@ const ( NFT_CMP_GTE // greater than or equal to ) +// Nf table range operators. +// Used by the nft range operation to compare values in registers. +// These correspond to enum values in include/uapi/linux/netfilter/nf_tables.h. +const ( + NFT_RANGE_EQ = iota + NFT_RANGE_NEQ +) + // Nf table payload expression offset bases. // Used by the nft payload operations to access appropriate data in the packet. // These correspond to enum values in include/uapi/linux/netfilter/nf_tables.h.