mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
This addresses an issue discovered by Inon Kaplan (PhD candidate in the Hebrew University School of Computer Science and Engineering), Ron Even (BSc graduate of Bar Ilan University) and Amit Klein (faculty member in the Hebrew University School of Computer Science and Engineering). Details will be provided in their paper, to be presented in a forthcoming academic conference. The fragement ID generation for IPv6 is changed to return a completely random uint32 number. PiperOrigin-RevId: 581364034
85 lines
2.0 KiB
Python
85 lines
2.0 KiB
Python
load("//tools:defs.bzl", "go_library", "go_test")
|
|
|
|
package(
|
|
default_applicable_licenses = ["//:license"],
|
|
licenses = ["notice"],
|
|
)
|
|
|
|
go_library(
|
|
name = "ipv6",
|
|
srcs = [
|
|
"dhcpv6configurationfromndpra_string.go",
|
|
"icmp.go",
|
|
"ipv6.go",
|
|
"mld.go",
|
|
"ndp.go",
|
|
"stats.go",
|
|
],
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//pkg/atomicbitops",
|
|
"//pkg/buffer",
|
|
"//pkg/sync",
|
|
"//pkg/tcpip",
|
|
"//pkg/tcpip/header",
|
|
"//pkg/tcpip/header/parse",
|
|
"//pkg/tcpip/network/internal/fragmentation",
|
|
"//pkg/tcpip/network/internal/ip",
|
|
"//pkg/tcpip/network/internal/multicast",
|
|
"//pkg/tcpip/stack",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "ipv6_test",
|
|
size = "small",
|
|
srcs = [
|
|
"icmp_test.go",
|
|
"ipv6_test.go",
|
|
"main_test.go",
|
|
"ndp_test.go",
|
|
],
|
|
library = ":ipv6",
|
|
deps = [
|
|
"//pkg/buffer",
|
|
"//pkg/refs",
|
|
"//pkg/sync",
|
|
"//pkg/tcpip",
|
|
"//pkg/tcpip/checker",
|
|
"//pkg/tcpip/checksum",
|
|
"//pkg/tcpip/faketime",
|
|
"//pkg/tcpip/header",
|
|
"//pkg/tcpip/link/channel",
|
|
"//pkg/tcpip/link/sniffer",
|
|
"//pkg/tcpip/network/internal/testutil",
|
|
"//pkg/tcpip/prependable",
|
|
"//pkg/tcpip/stack",
|
|
"//pkg/tcpip/testutil",
|
|
"//pkg/tcpip/transport/icmp",
|
|
"//pkg/tcpip/transport/tcp",
|
|
"//pkg/tcpip/transport/udp",
|
|
"//pkg/waiter",
|
|
"@com_github_google_go_cmp//cmp:go_default_library",
|
|
"@org_golang_x_time//rate:go_default_library",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "ipv6_x_test",
|
|
size = "small",
|
|
srcs = ["mld_test.go"],
|
|
deps = [
|
|
":ipv6",
|
|
"//pkg/buffer",
|
|
"//pkg/refs",
|
|
"//pkg/tcpip",
|
|
"//pkg/tcpip/checker",
|
|
"//pkg/tcpip/faketime",
|
|
"//pkg/tcpip/header",
|
|
"//pkg/tcpip/link/channel",
|
|
"//pkg/tcpip/network/internal/testutil",
|
|
"//pkg/tcpip/stack",
|
|
"//pkg/tcpip/testutil",
|
|
],
|
|
)
|