gvisor/pkg/tcpip/link/sniffer
Ian Gudger 45e759a1fa 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
2018-08-21 13:49:18 -07:00
..
BUILD Build PCAP file with atomic blocking writes 2018-08-21 13:49:18 -07:00
pcap.go Switch netstack licenses to Apache 2.0. 2018-07-09 14:04:40 -07:00
sniffer.go Build PCAP file with atomic blocking writes 2018-08-21 13:49:18 -07:00