gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/pkg/tcpip/transport/packet/BUILD (about)

     1  load("//tools:defs.bzl", "go_library", "go_test")
     2  load("//tools/go_generics:defs.bzl", "go_template_instance")
     3  
     4  package(
     5      default_applicable_licenses = ["//:license"],
     6      licenses = ["notice"],
     7  )
     8  
     9  go_template_instance(
    10      name = "packet_list",
    11      out = "packet_list.go",
    12      package = "packet",
    13      prefix = "packet",
    14      template = "//pkg/ilist:generic_list",
    15      types = {
    16          "Element": "*packet",
    17          "Linker": "*packet",
    18      },
    19  )
    20  
    21  go_library(
    22      name = "packet",
    23      srcs = [
    24          "endpoint.go",
    25          "endpoint_state.go",
    26          "packet_list.go",
    27      ],
    28      visibility = ["//visibility:public"],
    29      deps = [
    30          "//pkg/buffer",
    31          "//pkg/log",
    32          "//pkg/sleep",
    33          "//pkg/sync",
    34          "//pkg/tcpip",
    35          "//pkg/tcpip/header",
    36          "//pkg/tcpip/stack",
    37          "//pkg/waiter",
    38      ],
    39  )
    40  
    41  go_test(
    42      name = "packet_test",
    43      srcs = ["packet_test.go"],
    44      deps = [
    45          "//pkg/tcpip",
    46          "//pkg/tcpip/faketime",
    47          "//pkg/tcpip/header",
    48          "//pkg/tcpip/link/channel",
    49          "//pkg/tcpip/link/ethernet",
    50          "//pkg/tcpip/stack",
    51          "//pkg/tcpip/transport/raw",
    52          "//pkg/waiter",
    53          "@com_github_google_go_cmp//cmp:go_default_library",
    54      ],
    55  )