gvisor/pkg/tcpip/link/rawfile
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 stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
blockingpoll_amd64.s Switch netstack licenses to Apache 2.0. 2018-07-09 14:04:40 -07:00
blockingpoll_unsafe.go Switch netstack licenses to Apache 2.0. 2018-07-09 14:04:40 -07:00
blockingpoll_unsafe_amd64.go Switch netstack licenses to Apache 2.0. 2018-07-09 14:04:40 -07:00
errors.go Switch netstack licenses to Apache 2.0. 2018-07-09 14:04:40 -07:00
rawfile_unsafe.go Build PCAP file with atomic blocking writes 2018-08-21 13:49:18 -07:00