gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/tools/xdp/cmd/BUILD (about)

     1  load("//tools:defs.bzl", "go_library")
     2  
     3  package(
     4      default_applicable_licenses = ["//:license"],
     5      licenses = ["notice"],
     6  )
     7  
     8  go_library(
     9      name = "cmd",
    10      srcs = [
    11          "cmd.go",
    12          "drop.go",
    13          "pass.go",
    14          "redirect_host.go",
    15          "tcpdump.go",
    16          "tunnel.go",
    17      ],
    18      embedsrcs = [
    19          "//tools/xdp/cmd/bpf:drop_ebpf.o",  # keep
    20          "//tools/xdp/cmd/bpf:pass_ebpf.o",  # keep
    21          "//tools/xdp/cmd/bpf:redirect_host_ebpf.o",  # keep
    22          "//tools/xdp/cmd/bpf:tcpdump_ebpf.o",  # keep
    23          "//tools/xdp/cmd/bpf:tunnel_host_ebpf.o",  # keep
    24      ],
    25      visibility = ["//:sandbox"],
    26      deps = [
    27          "//pkg/buffer",
    28          "//pkg/tcpip/header",
    29          "//pkg/tcpip/link/sniffer",
    30          "//pkg/tcpip/stack",
    31          "//pkg/xdp",
    32          "//runsc/flag",
    33          "@com_github_cilium_ebpf//:go_default_library",
    34          "@com_github_cilium_ebpf//link:go_default_library",
    35          "@com_github_google_subcommands//:go_default_library",
    36          "@org_golang_x_sys//unix:go_default_library",
    37      ],
    38  )