Add netfilter route operation constants for nftables support.

PiperOrigin-RevId: 672671935
This commit is contained in:
Jayden Nyamiaka
2024-09-09 14:22:57 -07:00
committed by gVisor bot
parent 7a1a7e79ca
commit f97dd13d1a
+20
View File
@@ -136,3 +136,23 @@ const (
NFT_BITWISE_LSHIFT // left-shift operation
NFT_BITWISE_RSHIFT // right-shift operation
)
// Nf table route expression keys.
// Used by the nft route operation to determine the routing data to retrieve.
// These correspond to enum values in include/uapi/linux/netfilter/nf_tables.h.
const (
// Traffic Class Identifier (Realm) associated with route
NFT_RT_CLASSID = iota
// Routing nexthop for IPv4 (next IPv4 address to jump to)
NFT_RT_NEXTHOP4
// Routing nexthop for IPv6 (next IPv6 address to jump to)
NFT_RT_NEXTHOP6
// Maximum Segment Size for TCP connections (largest size for a single packet)
NFT_RT_TCPMSS
// Bool for whether packet route involves a IPsec transform st xfrm is applied
NFT_RT_XFRM
)