From 45e759a1facdc8644025a84a68514ebad2813a90 Mon Sep 17 00:00:00 2001 From: Ian Gudger Date: Tue, 21 Aug 2018 13:48:10 -0700 Subject: Build PCAP file with atomic blocking writes The previous use of non-blocking writes could result in corrupt PCAP files if a partial write occurs. Using (*os.File).Write solves this problem by not allowing partial writes. This change does not increase allocations (in one path it actually reduces them), but does add additional copying. PiperOrigin-RevId: 209652974 Change-Id: I4b1cf2eda4cfd7f237a4245aceb7391b3055a66c --- pkg/tcpip/link/sniffer/BUILD | 1 - 1 file changed, 1 deletion(-) (limited to 'pkg/tcpip/link/sniffer/BUILD') diff --git a/pkg/tcpip/link/sniffer/BUILD b/pkg/tcpip/link/sniffer/BUILD index 1e844f949..7155aea66 100644 --- a/pkg/tcpip/link/sniffer/BUILD +++ b/pkg/tcpip/link/sniffer/BUILD @@ -17,7 +17,6 @@ go_library( "//pkg/tcpip", "//pkg/tcpip/buffer", "//pkg/tcpip/header", - "//pkg/tcpip/link/rawfile", "//pkg/tcpip/stack", ], ) -- cgit v1.2.3