gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/pkg/tcpip/header/BUILD (about) 1 load("//tools:defs.bzl", "go_library", "go_test") 2 3 package( 4 default_applicable_licenses = ["//:license"], 5 licenses = ["notice"], 6 ) 7 8 go_library( 9 name = "header", 10 srcs = [ 11 "arp.go", 12 "checksum.go", 13 "datagram.go", 14 "eth.go", 15 "gue.go", 16 "icmpv4.go", 17 "icmpv6.go", 18 "igmp.go", 19 "igmpv3.go", 20 "interfaces.go", 21 "ipv4.go", 22 "ipv6.go", 23 "ipv6_extension_headers.go", 24 "ipv6_fragment.go", 25 "mld.go", 26 "mldv2.go", 27 "mldv2_igmpv3_common.go", 28 "ndp_neighbor_advert.go", 29 "ndp_neighbor_solicit.go", 30 "ndp_options.go", 31 "ndp_router_advert.go", 32 "ndp_router_solicit.go", 33 "ndpoptionidentifier_string.go", 34 "tcp.go", 35 "udp.go", 36 "virtionet.go", 37 ], 38 visibility = ["//visibility:public"], 39 deps = [ 40 "//pkg/buffer", 41 "//pkg/tcpip", 42 "//pkg/tcpip/checksum", 43 "//pkg/tcpip/seqnum", 44 "@com_github_google_btree//:go_default_library", 45 ], 46 ) 47 48 go_test( 49 name = "header_x_test", 50 size = "small", 51 srcs = [ 52 "checksum_test.go", 53 "igmp_test.go", 54 "ipv4_test.go", 55 "ipv6_test.go", 56 "ipversion_test.go", 57 "tcp_test.go", 58 ], 59 deps = [ 60 ":header", 61 "//pkg/buffer", 62 "//pkg/rand", 63 "//pkg/tcpip", 64 "//pkg/tcpip/checksum", 65 "//pkg/tcpip/prependable", 66 "//pkg/tcpip/testutil", 67 "@com_github_google_go_cmp//cmp:go_default_library", 68 ], 69 ) 70 71 go_test( 72 name = "header_test", 73 size = "small", 74 srcs = [ 75 "eth_test.go", 76 "ipv6_extension_headers_test.go", 77 "mld_test.go", 78 "ndp_test.go", 79 ], 80 library = ":header", 81 deps = [ 82 "//pkg/buffer", 83 "//pkg/tcpip", 84 "//pkg/tcpip/testutil", 85 "@com_github_google_go_cmp//cmp:go_default_library", 86 ], 87 )