2019-09-12 22:09:01 +00:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_test")
|
2019-10-14 22:20:35 +00:00
|
|
|
load("//tools/go_stateify:defs.bzl", "go_library")
|
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",
|
|
|
|
"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",
|
2018-04-27 17:37:02 +00:00
|
|
|
"tcp.go",
|
|
|
|
"udp.go",
|
|
|
|
],
|
2019-06-13 23:49:09 +00:00
|
|
|
importpath = "gvisor.dev/gvisor/pkg/tcpip/header",
|
2018-04-27 17:37:02 +00:00
|
|
|
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",
|
2018-04-27 17:37:02 +00:00
|
|
|
"ipversion_test.go",
|
|
|
|
"tcp_test.go",
|
|
|
|
],
|
2019-10-22 18:54:14 +00:00
|
|
|
deps = [
|
|
|
|
":header",
|
|
|
|
"//pkg/tcpip/buffer",
|
|
|
|
],
|
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",
|
|
|
|
"ndp_test.go",
|
|
|
|
],
|
2019-10-17 05:53:20 +00:00
|
|
|
embed = [":header"],
|
|
|
|
deps = ["//pkg/tcpip"],
|
2018-04-27 17:37:02 +00:00
|
|
|
)
|