github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/pkg/tcpip/transport/packet/BUILD (about)

     1  load("//tools:defs.bzl", "go_library")
     2  load("//tools/go_generics:defs.bzl", "go_template_instance")
     3  
     4  package(licenses = ["notice"])
     5  
     6  go_template_instance(
     7      name = "packet_list",
     8      out = "packet_list.go",
     9      package = "packet",
    10      prefix = "packet",
    11      template = "//pkg/ilist:generic_list",
    12      types = {
    13          "Element": "*packet",
    14          "Linker": "*packet",
    15      },
    16  )
    17  
    18  go_library(
    19      name = "packet",
    20      srcs = [
    21          "endpoint.go",
    22          "endpoint_state.go",
    23          "packet_list.go",
    24      ],
    25      imports = ["gvisor.dev/gvisor/pkg/tcpip/buffer"],
    26      visibility = ["//visibility:public"],
    27      deps = [
    28          "//pkg/log",
    29          "//pkg/sleep",
    30          "//pkg/sync",
    31          "//pkg/tcpip",
    32          "//pkg/tcpip/buffer",
    33          "//pkg/tcpip/header",
    34          "//pkg/tcpip/stack",
    35          "//pkg/waiter",
    36      ],
    37  )