gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/pkg/tcpip/transport/internal/network/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 = "network", 10 srcs = [ 11 "endpoint.go", 12 "endpoint_state.go", 13 ], 14 visibility = [ 15 "//pkg/tcpip/transport/icmp:__pkg__", 16 "//pkg/tcpip/transport/raw:__pkg__", 17 "//pkg/tcpip/transport/udp:__pkg__", 18 ], 19 deps = [ 20 "//pkg/atomicbitops", 21 "//pkg/buffer", 22 "//pkg/sync", 23 "//pkg/tcpip", 24 "//pkg/tcpip/header", 25 "//pkg/tcpip/stack", 26 "//pkg/tcpip/transport", 27 "//pkg/waiter", 28 ], 29 ) 30 31 go_test( 32 name = "network_test", 33 size = "small", 34 srcs = ["endpoint_test.go"], 35 deps = [ 36 ":network", 37 "//pkg/buffer", 38 "//pkg/refs", 39 "//pkg/tcpip", 40 "//pkg/tcpip/checker", 41 "//pkg/tcpip/faketime", 42 "//pkg/tcpip/header", 43 "//pkg/tcpip/link/channel", 44 "//pkg/tcpip/link/loopback", 45 "//pkg/tcpip/network/ipv4", 46 "//pkg/tcpip/network/ipv6", 47 "//pkg/tcpip/stack", 48 "//pkg/tcpip/testutil", 49 "//pkg/tcpip/transport", 50 "//pkg/tcpip/transport/udp", 51 "//pkg/waiter", 52 "@com_github_google_go_cmp//cmp:go_default_library", 53 ], 54 )