mirror of
https://github.com/hanzoai/visor.git
synced 2026-09-24 17:04:14 +00:00
When a packet goes through DNAT in the Output hook, the route needs to be re-calculated and the checksum should be updated based on the new route. PiperOrigin-RevId: 971827495
86 lines
2.1 KiB
Python
86 lines
2.1 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/checksum",
|
|
"//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",
|
|
],
|
|
)
|