Commit fadc468
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: 7663919111 parent b14059d commit fadc468
File tree
20 files changed
+3167
-2952
lines changed- pkg/tcpip
- nftables
- stack
20 files changed
+3167
-2952
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
90 | 95 | | |
91 | 96 | | |
92 | 97 | | |
| |||
This file was deleted.
0 commit comments