gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/pkg/tcpip/transport/raw/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 = "raw_packet_list",
    11      out = "raw_packet_list.go",
    12      package = "raw",
    13      prefix = "rawPacket",
    14      template = "//pkg/ilist:generic_list",
    15      types = {
    16          "Element": "*rawPacket",
    17          "Linker": "*rawPacket",
    18      },
    19  )
    20  
    21  go_library(
    22      name = "raw",
    23      srcs = [
    24          "endpoint.go",
    25          "endpoint_state.go",
    26          "protocol.go",
    27          "raw_packet_list.go",
    28      ],
    29      visibility = ["//visibility:public"],
    30      deps = [
    31          "//pkg/buffer",
    32          "//pkg/log",
    33          "//pkg/sleep",
    34          "//pkg/sync",
    35          "//pkg/tcpip",
    36          "//pkg/tcpip/checksum",
    37          "//pkg/tcpip/header",
    38          "//pkg/tcpip/stack",
    39          "//pkg/tcpip/transport",
    40          "//pkg/tcpip/transport/internal/network",
    41          "//pkg/tcpip/transport/internal/noop",
    42          "//pkg/tcpip/transport/packet",
    43          "//pkg/waiter",
    44      ],
    45  )
    46  
    47  go_test(
    48      name = "raw_x_test",
    49      size = "small",
    50      srcs = ["raw_test.go"],
    51      deps = [
    52          "//pkg/refs",
    53          "//pkg/tcpip",
    54          "//pkg/tcpip/checker",
    55          "//pkg/tcpip/header",
    56          "//pkg/tcpip/stack",
    57          "//pkg/tcpip/transport/testing/context",
    58          "//pkg/tcpip/transport/udp",
    59      ],
    60  )