-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement the PacketMMapEndpoint interface for PACKET_MMAP.
This code is tested in the subsequent change with syscall tests. PiperOrigin-RevId: 721861305
- Loading branch information
1 parent
198ac83
commit 0f88965
Showing
4 changed files
with
713 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
load("//tools:defs.bzl", "go_library") | ||
|
||
package( | ||
default_applicable_licenses = ["//:license"], | ||
licenses = ["notice"], | ||
) | ||
|
||
go_library( | ||
name = "packetmmap", | ||
srcs = [ | ||
"endpoint.go", | ||
"endpoint_state.go", | ||
"ring_buffer.go", | ||
], | ||
visibility = [ | ||
"//visibility:public", | ||
], | ||
deps = [ | ||
"//pkg/abi/linux", | ||
"//pkg/atomicbitops", | ||
"//pkg/bitmap", | ||
"//pkg/buffer", | ||
"//pkg/context", | ||
"//pkg/errors/linuxerr", | ||
"//pkg/hostarch", | ||
"//pkg/safemem", | ||
"//pkg/sentry/memmap", | ||
"//pkg/sentry/pgalloc", | ||
"//pkg/sentry/socket", | ||
"//pkg/sentry/usage", | ||
"//pkg/sync", | ||
"//pkg/tcpip", | ||
"//pkg/tcpip/header", | ||
"//pkg/tcpip/stack", | ||
"//pkg/waiter", | ||
], | ||
) |
Oops, something went wrong.