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