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

     1  load("//tools:defs.bzl", "go_library", "go_test")
     2  
     3  package(
     4      default_applicable_licenses = ["//:license"],
     5      licenses = ["notice"],
     6  )
     7  
     8  go_library(
     9      name = "ipv4",
    10      srcs = [
    11          "icmp.go",
    12          "igmp.go",
    13          "ipv4.go",
    14          "stats.go",
    15      ],
    16      visibility = ["//visibility:public"],
    17      deps = [
    18          "//pkg/atomicbitops",
    19          "//pkg/buffer",
    20          "//pkg/sync",
    21          "//pkg/tcpip",
    22          "//pkg/tcpip/checksum",
    23          "//pkg/tcpip/header",
    24          "//pkg/tcpip/header/parse",
    25          "//pkg/tcpip/network/hash",
    26          "//pkg/tcpip/network/internal/fragmentation",
    27          "//pkg/tcpip/network/internal/ip",
    28          "//pkg/tcpip/network/internal/multicast",
    29          "//pkg/tcpip/stack",
    30      ],
    31  )
    32  
    33  go_test(
    34      name = "ipv4_test",
    35      size = "small",
    36      srcs = [
    37          "igmp_test.go",
    38          "ipv4_test.go",
    39          "main_test.go",
    40      ],
    41      deps = [
    42          "//pkg/buffer",
    43          "//pkg/refs",
    44          "//pkg/sync",
    45          "//pkg/tcpip",
    46          "//pkg/tcpip/checker",
    47          "//pkg/tcpip/checksum",
    48          "//pkg/tcpip/faketime",
    49          "//pkg/tcpip/header",
    50          "//pkg/tcpip/link/channel",
    51          "//pkg/tcpip/link/sniffer",
    52          "//pkg/tcpip/network/arp",
    53          "//pkg/tcpip/network/internal/testutil",
    54          "//pkg/tcpip/network/ipv4",
    55          "//pkg/tcpip/prependable",
    56          "//pkg/tcpip/stack",
    57          "//pkg/tcpip/testutil",
    58          "//pkg/tcpip/transport/icmp",
    59          "//pkg/tcpip/transport/raw",
    60          "//pkg/tcpip/transport/tcp",
    61          "//pkg/tcpip/transport/udp",
    62          "//pkg/waiter",
    63          "@com_github_google_go_cmp//cmp:go_default_library",
    64          "@com_github_google_go_cmp//cmp/cmpopts:go_default_library",
    65      ],
    66  )
    67  
    68  go_test(
    69      name = "stats_test",
    70      size = "small",
    71      srcs = ["stats_test.go"],
    72      library = ":ipv4",
    73      deps = [
    74          "//pkg/tcpip",
    75          "//pkg/tcpip/stack",
    76          "//pkg/tcpip/testutil",
    77      ],
    78  )