github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/pkg/tcpip/network/ipv6/BUILD (about) 1 load("//tools:defs.bzl", "go_library", "go_test") 2 3 package(licenses = ["notice"]) 4 5 go_library( 6 name = "ipv6", 7 srcs = [ 8 "dhcpv6configurationfromndpra_string.go", 9 "icmp.go", 10 "ipv6.go", 11 "mld.go", 12 "ndp.go", 13 "stats.go", 14 ], 15 visibility = ["//visibility:public"], 16 deps = [ 17 "//pkg/sync", 18 "//pkg/tcpip", 19 "//pkg/tcpip/buffer", 20 "//pkg/tcpip/header", 21 "//pkg/tcpip/header/parse", 22 "//pkg/tcpip/network/hash", 23 "//pkg/tcpip/network/internal/fragmentation", 24 "//pkg/tcpip/network/internal/ip", 25 "//pkg/tcpip/stack", 26 ], 27 ) 28 29 go_test( 30 name = "ipv6_test", 31 size = "small", 32 srcs = [ 33 "icmp_test.go", 34 "ipv6_test.go", 35 "ndp_test.go", 36 ], 37 library = ":ipv6", 38 deps = [ 39 "//pkg/tcpip", 40 "//pkg/tcpip/buffer", 41 "//pkg/tcpip/checker", 42 "//pkg/tcpip/faketime", 43 "//pkg/tcpip/header", 44 "//pkg/tcpip/link/channel", 45 "//pkg/tcpip/link/sniffer", 46 "//pkg/tcpip/network/internal/testutil", 47 "//pkg/tcpip/stack", 48 "//pkg/tcpip/testutil", 49 "//pkg/tcpip/transport/icmp", 50 "//pkg/tcpip/transport/tcp", 51 "//pkg/tcpip/transport/udp", 52 "//pkg/waiter", 53 "@com_github_google_go_cmp//cmp:go_default_library", 54 ], 55 ) 56 57 go_test( 58 name = "ipv6_x_test", 59 size = "small", 60 srcs = ["mld_test.go"], 61 deps = [ 62 ":ipv6", 63 "//pkg/tcpip", 64 "//pkg/tcpip/buffer", 65 "//pkg/tcpip/checker", 66 "//pkg/tcpip/faketime", 67 "//pkg/tcpip/header", 68 "//pkg/tcpip/link/channel", 69 "//pkg/tcpip/stack", 70 "//pkg/tcpip/testutil", 71 ], 72 )