From 72a30b11486b48394fa0edca500b80e4ca83b10c Mon Sep 17 00:00:00 2001 From: Arthur Sfez Date: Tue, 15 Sep 2020 14:47:34 -0700 Subject: Move reusable IPv4 test code into a testutil module and refactor it The refactor aims to simplify the package, by replacing the Go channel with a PacketBuffer slice. This code will be reused by tests for IPv6 fragmentation. PiperOrigin-RevId: 331860411 --- pkg/tcpip/network/ipv4/BUILD | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/tcpip/network/ipv4/BUILD') diff --git a/pkg/tcpip/network/ipv4/BUILD b/pkg/tcpip/network/ipv4/BUILD index d142b4ffa..c82593e71 100644 --- a/pkg/tcpip/network/ipv4/BUILD +++ b/pkg/tcpip/network/ipv4/BUILD @@ -30,6 +30,7 @@ go_test( "//pkg/tcpip/link/channel", "//pkg/tcpip/link/sniffer", "//pkg/tcpip/network/ipv4", + "//pkg/tcpip/network/testutil", "//pkg/tcpip/stack", "//pkg/tcpip/transport/tcp", "//pkg/tcpip/transport/udp", -- cgit v1.2.3