x/sys/unix: Missing Netfilter and NFTables constants #64426
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
FeatureRequest
FixPending
Issues that have a fix which has not yet been reviewed or submitted.
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
Go version
go version go1.21.1 linux/amd64
What operating system and processor architecture are you using (
go env
)?What did you do?
Try to use the NFtables constants (e.g.
unix.NFT_QUEUE_FLAG_BYPASS
) and the Netfilter constants (e.g.unix.NF_NAT_RANGE_PROTO_RANDOM
).These constants are used with netfilter:
What did you expect to see?
Being able to use constants from
linux/netfilter/nf_tables.h
and fromlinux/netfilter/nf_nat.h
. This would add 54 constants withNF_NAT_
andNFT_
excludingNFT_META_IIFTYPE
since it is already imported from nf_tables.h#951.What did you see instead?
Compiler error:
undefined: unix.NFT_QUEUE_FLAG_BYPASS
The text was updated successfully, but these errors were encountered: