github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/pkg/tcpip/network/ipv4/BUILD (about) 1 load("//tools:defs.bzl", "go_library", "go_test") 2 3 package(licenses = ["notice"]) 4 5 go_library( 6 name = "ipv4", 7 srcs = [ 8 "icmp.go", 9 "igmp.go", 10 "ipv4.go", 11 "stats.go", 12 ], 13 visibility = ["//visibility:public"], 14 deps = [ 15 "//pkg/sync", 16 "//pkg/tcpip", 17 "//pkg/tcpip/buffer", 18 "//pkg/tcpip/header", 19 "//pkg/tcpip/header/parse", 20 "//pkg/tcpip/network/hash", 21 "//pkg/tcpip/network/internal/fragmentation", 22 "//pkg/tcpip/network/internal/ip", 23 "//pkg/tcpip/stack", 24 ], 25 ) 26 27 go_test( 28 name = "ipv4_test", 29 size = "small", 30 srcs = [ 31 "igmp_test.go", 32 "ipv4_test.go", 33 ], 34 deps = [ 35 "//pkg/sync", 36 "//pkg/tcpip", 37 "//pkg/tcpip/buffer", 38 "//pkg/tcpip/checker", 39 "//pkg/tcpip/faketime", 40 "//pkg/tcpip/header", 41 "//pkg/tcpip/link/channel", 42 "//pkg/tcpip/link/loopback", 43 "//pkg/tcpip/link/sniffer", 44 "//pkg/tcpip/network/arp", 45 "//pkg/tcpip/network/internal/testutil", 46 "//pkg/tcpip/network/ipv4", 47 "//pkg/tcpip/stack", 48 "//pkg/tcpip/testutil", 49 "//pkg/tcpip/transport/icmp", 50 "//pkg/tcpip/transport/raw", 51 "//pkg/tcpip/transport/tcp", 52 "//pkg/tcpip/transport/udp", 53 "//pkg/waiter", 54 "@com_github_google_go_cmp//cmp:go_default_library", 55 ], 56 ) 57 58 go_test( 59 name = "stats_test", 60 size = "small", 61 srcs = ["stats_test.go"], 62 library = ":ipv4", 63 deps = [ 64 "//pkg/tcpip", 65 "//pkg/tcpip/stack", 66 "//pkg/tcpip/testutil", 67 ], 68 )