Skip to content

Commit 14fac3f

Browse files
kerumetogvisor-bot
authored andcommitted
Refactoring
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. hook_string.go was also regenerated to include the ingress and egress hook enums. 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 14fac3f

21 files changed

+3121
-2954
lines changed

pkg/tcpip/nftables/BUILD

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

0 commit comments

Comments
 (0)