gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/pkg/tcpip/network/arp/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 = "arp",
    10      srcs = [
    11          "arp.go",
    12          "stats.go",
    13      ],
    14      visibility = ["//visibility:public"],
    15      deps = [
    16          "//pkg/atomicbitops",
    17          "//pkg/sync",
    18          "//pkg/tcpip",
    19          "//pkg/tcpip/header",
    20          "//pkg/tcpip/header/parse",
    21          "//pkg/tcpip/network/internal/ip",
    22          "//pkg/tcpip/stack",
    23      ],
    24  )
    25  
    26  go_test(
    27      name = "arp_test",
    28      size = "small",
    29      srcs = ["arp_test.go"],
    30      deps = [
    31          ":arp",
    32          "//pkg/buffer",
    33          "//pkg/refs",
    34          "//pkg/tcpip",
    35          "//pkg/tcpip/faketime",
    36          "//pkg/tcpip/header",
    37          "//pkg/tcpip/link/channel",
    38          "//pkg/tcpip/link/sniffer",
    39          "//pkg/tcpip/network/ipv4",
    40          "//pkg/tcpip/stack",
    41          "//pkg/tcpip/testutil",
    42          "@com_github_google_go_cmp//cmp:go_default_library",
    43          "@com_github_google_go_cmp//cmp/cmpopts:go_default_library",
    44      ],
    45  )
    46  
    47  go_test(
    48      name = "stats_test",
    49      size = "small",
    50      srcs = ["stats_test.go"],
    51      library = ":arp",
    52      deps = [
    53          "//pkg/refs",
    54          "//pkg/tcpip",
    55          "//pkg/tcpip/stack",
    56          "//pkg/tcpip/testutil",
    57      ],
    58  )