github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/pkg/tcpip/network/arp/BUILD (about) 1 load("//tools:defs.bzl", "go_library", "go_test") 2 3 package(licenses = ["notice"]) 4 5 go_library( 6 name = "arp", 7 srcs = [ 8 "arp.go", 9 "stats.go", 10 ], 11 visibility = ["//visibility:public"], 12 deps = [ 13 "//pkg/sync", 14 "//pkg/tcpip", 15 "//pkg/tcpip/buffer", 16 "//pkg/tcpip/header", 17 "//pkg/tcpip/header/parse", 18 "//pkg/tcpip/network/internal/ip", 19 "//pkg/tcpip/stack", 20 ], 21 ) 22 23 go_test( 24 name = "arp_test", 25 size = "small", 26 srcs = ["arp_test.go"], 27 deps = [ 28 ":arp", 29 "//pkg/tcpip", 30 "//pkg/tcpip/buffer", 31 "//pkg/tcpip/faketime", 32 "//pkg/tcpip/header", 33 "//pkg/tcpip/link/channel", 34 "//pkg/tcpip/link/sniffer", 35 "//pkg/tcpip/network/ipv4", 36 "//pkg/tcpip/stack", 37 "//pkg/tcpip/testutil", 38 "@com_github_google_go_cmp//cmp:go_default_library", 39 "@com_github_google_go_cmp//cmp/cmpopts:go_default_library", 40 ], 41 ) 42 43 go_test( 44 name = "stats_test", 45 size = "small", 46 srcs = ["stats_test.go"], 47 library = ":arp", 48 deps = [ 49 "//pkg/tcpip", 50 "//pkg/tcpip/stack", 51 "//pkg/tcpip/testutil", 52 ], 53 )