Add netfilter byteorder operation constants for nftables support.

PiperOrigin-RevId: 673883678
This commit is contained in:
Jayden Nyamiaka
2024-09-12 09:39:46 -07:00
committed by gVisor bot
parent 98c83d5022
commit bc98f10dd3
+9
View File
@@ -156,3 +156,12 @@ const (
// Bool for whether packet route involves a IPsec transform st xfrm is applied
NFT_RT_XFRM
)
// Nf table byteorder operators.
// Used by the nft byteorder operation to convert data in a register to a
// specific byte order.
// These correspond to enum values in include/uapi/linux/netfilter/nf_tables.h.
const (
NFT_BYTEORDER_NTOH = iota // network to host operator
NFT_BYTEORDER_HTON // host to network operator
)