mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
51 lines
1.0 KiB
Python
51 lines
1.0 KiB
Python
load("//tools:defs.bzl", "go_library", "go_test")
|
|
|
|
package(
|
|
default_applicable_licenses = ["//:license"],
|
|
licenses = ["notice"],
|
|
)
|
|
|
|
go_library(
|
|
name = "multicast",
|
|
srcs = [
|
|
"route_table.go",
|
|
],
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//pkg/tcpip",
|
|
"//pkg/tcpip/stack",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "multicast_test",
|
|
size = "small",
|
|
srcs = ["route_table_test.go"],
|
|
library = ":multicast",
|
|
deps = [
|
|
"//pkg/buffer",
|
|
"//pkg/refs",
|
|
"//pkg/tcpip",
|
|
"//pkg/tcpip/faketime",
|
|
"//pkg/tcpip/stack",
|
|
"//pkg/tcpip/testutil",
|
|
"@com_github_google_go_cmp//cmp:go_default_library",
|
|
"@com_github_google_go_cmp//cmp/cmpopts:go_default_library",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "multicast_x_test",
|
|
size = "small",
|
|
srcs = ["example_test.go"],
|
|
deps = [
|
|
":multicast",
|
|
"//pkg/buffer",
|
|
"//pkg/refs",
|
|
"//pkg/tcpip",
|
|
"//pkg/tcpip/faketime",
|
|
"//pkg/tcpip/stack",
|
|
"//pkg/tcpip/testutil",
|
|
],
|
|
)
|