summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/link/sniffer/BUILD
diff options
context:
space:
mode:
authorIan Gudger <igudger@google.com>2018-08-21 13:48:10 -0700
committerShentubot <shentubot@google.com>2018-08-21 13:49:18 -0700
commit45e759a1facdc8644025a84a68514ebad2813a90 (patch)
tree5879ff71eca7bce50cfe8d7ec34e06d00fc515c4 /pkg/tcpip/link/sniffer/BUILD
parentd6d165cb0b8147461388287ffd4cfee221940123 (diff)
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
Diffstat (limited to 'pkg/tcpip/link/sniffer/BUILD')
-rw-r--r--pkg/tcpip/link/sniffer/BUILD1
1 files changed, 0 insertions, 1 deletions
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",
],
)