gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/pkg/tcpip/network/internal/ip/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 = "ip", 10 srcs = [ 11 "duplicate_address_detection.go", 12 "errors.go", 13 "generic_multicast_protocol.go", 14 "stats.go", 15 ], 16 visibility = [ 17 "//pkg/tcpip/network/arp:__pkg__", 18 "//pkg/tcpip/network/ipv4:__pkg__", 19 "//pkg/tcpip/network/ipv6:__pkg__", 20 ], 21 deps = [ 22 "//pkg/sync", 23 "//pkg/tcpip", 24 "//pkg/tcpip/header", 25 "//pkg/tcpip/stack", 26 ], 27 ) 28 29 go_test( 30 name = "ip_x_test", 31 size = "small", 32 srcs = [ 33 "duplicate_address_detection_test.go", 34 "generic_multicast_protocol_test.go", 35 ], 36 deps = [ 37 ":ip", 38 "//pkg/sync", 39 "//pkg/tcpip", 40 "//pkg/tcpip/faketime", 41 "//pkg/tcpip/header", 42 "//pkg/tcpip/stack", 43 "@com_github_google_go_cmp//cmp:go_default_library", 44 ], 45 )