2020-01-27 18:04:07 +00:00
|
|
|
load("//tools:defs.bzl", "go_library", "go_test")
|
2019-09-12 22:09:01 +00:00
|
|
|
|
2019-01-31 19:11:44 +00:00
|
|
|
package(licenses = ["notice"])
|
2018-04-27 17:37:02 +00:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "header",
|
|
|
|
srcs = [
|
|
|
|
"arp.go",
|
|
|
|
"checksum.go",
|
|
|
|
"eth.go",
|
|
|
|
"gue.go",
|
|
|
|
"icmpv4.go",
|
|
|
|
"icmpv6.go",
|
|
|
|
"interfaces.go",
|
|
|
|
"ipv4.go",
|
|
|
|
"ipv6.go",
|
2020-03-26 21:04:28 +00:00
|
|
|
"ipv6_extension_headers.go",
|
2018-04-27 17:37:02 +00:00
|
|
|
"ipv6_fragment.go",
|
2019-10-17 05:53:20 +00:00
|
|
|
"ndp_neighbor_advert.go",
|
|
|
|
"ndp_neighbor_solicit.go",
|
|
|
|
"ndp_options.go",
|
2019-10-22 21:40:27 +00:00
|
|
|
"ndp_router_advert.go",
|
2020-01-16 00:43:36 +00:00
|
|
|
"ndp_router_solicit.go",
|
2020-04-17 00:26:12 +00:00
|
|
|
"ndpoptionidentifier_string.go",
|
2018-04-27 17:37:02 +00:00
|
|
|
"tcp.go",
|
|
|
|
"udp.go",
|
|
|
|
],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
"//pkg/tcpip",
|
2018-11-05 23:38:32 +00:00
|
|
|
"//pkg/tcpip/buffer",
|
2018-04-27 17:37:02 +00:00
|
|
|
"//pkg/tcpip/seqnum",
|
2018-11-09 22:37:42 +00:00
|
|
|
"@com_github_google_btree//:go_default_library",
|
2018-04-27 17:37:02 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
2019-10-17 05:53:20 +00:00
|
|
|
name = "header_x_test",
|
2018-04-27 17:37:02 +00:00
|
|
|
size = "small",
|
|
|
|
srcs = [
|
2019-10-22 18:54:14 +00:00
|
|
|
"checksum_test.go",
|
2019-12-14 00:26:06 +00:00
|
|
|
"ipv6_test.go",
|
2018-04-27 17:37:02 +00:00
|
|
|
"ipversion_test.go",
|
|
|
|
"tcp_test.go",
|
|
|
|
],
|
2019-10-22 18:54:14 +00:00
|
|
|
deps = [
|
|
|
|
":header",
|
2020-01-03 20:58:40 +00:00
|
|
|
"//pkg/rand",
|
2019-12-14 00:26:06 +00:00
|
|
|
"//pkg/tcpip",
|
2019-10-22 18:54:14 +00:00
|
|
|
"//pkg/tcpip/buffer",
|
2020-07-13 23:10:58 +00:00
|
|
|
"@com_github_google_go_cmp//cmp:go_default_library",
|
2019-10-22 18:54:14 +00:00
|
|
|
],
|
2019-10-17 05:53:20 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "header_test",
|
|
|
|
size = "small",
|
2019-10-22 14:25:35 +00:00
|
|
|
srcs = [
|
|
|
|
"eth_test.go",
|
2020-03-26 21:04:28 +00:00
|
|
|
"ipv6_extension_headers_test.go",
|
2019-10-22 14:25:35 +00:00
|
|
|
"ndp_test.go",
|
|
|
|
],
|
2020-01-27 18:04:07 +00:00
|
|
|
library = ":header",
|
2019-12-05 18:40:18 +00:00
|
|
|
deps = [
|
|
|
|
"//pkg/tcpip",
|
2020-03-26 21:04:28 +00:00
|
|
|
"//pkg/tcpip/buffer",
|
2020-07-13 23:10:58 +00:00
|
|
|
"@com_github_google_go_cmp//cmp:go_default_library",
|
2019-12-05 18:40:18 +00:00
|
|
|
],
|
2018-04-27 17:37:02 +00:00
|
|
|
)
|