Skip to content

Commit fadc468

Browse files
kerumetogvisor-bot
authored andcommitted
Refactoring nftables package
Refactored tcpip/nftables/ and its contents to exist under tcpip/stack/ in anticipation of implementing netlink netfilter sockets. These sockets need to reference the system-wide nftables structure, which requires exposing it to all processes. The refactoring was necessary due to circular dependencies between the nftables package and the stack package. nftables/nftables.go was split up accordingly to more easily manage its types (nftables_types.go) and the byte operations within it (see nft_{op}.go files). NOTE: Files that previously existed under the nftables package are still not thread safe. Future changes will add synchronization primitives to resolve this issue. PiperOrigin-RevId: 766391911
1 parent b14059d commit fadc468

20 files changed

+3167
-2952
lines changed

pkg/tcpip/BUILD

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ deps_test(
8787
"//pkg/sync/locking",
8888
"//pkg/waiter",
8989
"//pkg/xdp",
90+
"//pkg/abi/linux",
91+
"//pkg/abi:abi",
92+
"//pkg/hostarch:hostarch",
93+
"//pkg/marshal:marshal",
94+
"//pkg/marshal/primitive:primitive",
9095

9196
# Other deps.
9297
"@com_github_google_btree//:go_default_library",

pkg/tcpip/nftables/BUILD

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)