0360b9d10a
Based on https://git.netfilter.org/nftables/commit/include/datatype.h?id=cca4c856301caa8959ac98aac5811130bc19512c It makes more sense to point to datatype.h in the comment since the actual definitions of these types are scattered throughout src/. uid_t and gid_t sizes are fixed at 4 bytes currently, but that might of course change. I couldn't find a good way to make this dynamic. There are a number of Sizeof* constants in x/sys/unix, so that's probably the right place to add them. |
||
---|---|---|
.github/workflows | ||
binaryutil | ||
expr | ||
CONTRIBUTING.md | ||
LICENSE | ||
README.md | ||
chain.go | ||
conn.go | ||
counter.go | ||
doc.go | ||
go.mod | ||
go.sum | ||
nftables_test.go | ||
obj.go | ||
rule.go | ||
set.go | ||
set_test.go | ||
table.go | ||
util.go |
README.md
This is not the correct repository for issues with the Linux nftables project! This repository contains a third-party Go package to programmatically interact with nftables. Find the official nftables website at https://wiki.nftables.org/
This package manipulates Linux nftables (the iptables successor). It is implemented in pure Go, i.e. does not wrap libnftnl.
This is not an official Google product.
Breaking changes
This package is in very early stages, and only contains enough data types and functions to install very basic nftables rules. It is likely that mistakes with the data types/API will be identified as more functionality is added.
Contributions
Contributions are very welcome!