gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/pkg/tcpip/link/fdbased/BUILD (about) 1 load("//tools:defs.bzl", "go_library", "go_test") 2 3 package( 4 default_applicable_licenses = ["//:license"], 5 licenses = ["notice"], 6 ) 7 8 go_library( 9 name = "fdbased", 10 srcs = [ 11 "endpoint.go", 12 "endpoint_unsafe.go", 13 "mmap.go", 14 "mmap_stub.go", 15 "mmap_unsafe.go", 16 "packet_dispatchers.go", 17 "processors.go", 18 ], 19 visibility = ["//visibility:public"], 20 deps = [ 21 "//pkg/atomicbitops", 22 "//pkg/buffer", 23 "//pkg/rand", 24 "//pkg/sleep", 25 "//pkg/sync", 26 "//pkg/tcpip", 27 "//pkg/tcpip/hash/jenkins", 28 "//pkg/tcpip/header", 29 "//pkg/tcpip/link/rawfile", 30 "//pkg/tcpip/link/stopfd", 31 "//pkg/tcpip/stack", 32 "//pkg/tcpip/stack/gro", 33 "@org_golang_x_sys//unix:go_default_library", 34 ], 35 ) 36 37 go_test( 38 name = "fdbased_test", 39 size = "small", 40 srcs = ["endpoint_test.go"], 41 library = ":fdbased", 42 deps = [ 43 "//pkg/buffer", 44 "//pkg/refs", 45 "//pkg/tcpip", 46 "//pkg/tcpip/header", 47 "//pkg/tcpip/stack", 48 "@com_github_google_go_cmp//cmp:go_default_library", 49 "@org_golang_x_sys//unix:go_default_library", 50 ], 51 )