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

     1  load("//tools:defs.bzl", "go_library")
     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 = "tun_endpoint_refs",
    11      out = "tun_endpoint_refs.go",
    12      package = "tun",
    13      prefix = "tunEndpoint",
    14      template = "//pkg/refs:refs_template",
    15      types = {
    16          "T": "tunEndpoint",
    17      },
    18  )
    19  
    20  go_library(
    21      name = "tun",
    22      srcs = [
    23          "device.go",
    24          "protocol.go",
    25          "tun_endpoint_refs.go",
    26          "tun_unsafe.go",
    27      ],
    28      visibility = ["//visibility:public"],
    29      deps = [
    30          "//pkg/abi/linux",
    31          "//pkg/atomicbitops",
    32          "//pkg/buffer",
    33          "//pkg/context",
    34          "//pkg/errors/linuxerr",
    35          "//pkg/log",
    36          "//pkg/refs",
    37          "//pkg/sync",
    38          "//pkg/tcpip",
    39          "//pkg/tcpip/header",
    40          "//pkg/tcpip/link/channel",
    41          "//pkg/tcpip/link/packetsocket",
    42          "//pkg/tcpip/stack",
    43          "//pkg/waiter",
    44          "@org_golang_x_sys//unix:go_default_library",
    45      ],
    46  )