gvisor/pkg/tcpip/link
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
..
channel stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
fdbased Resend packets back to netstack if destined to itself 2018-08-08 22:03:35 -07:00
loopback Basic support for ip link/addr and ifconfig 2018-08-08 22:39:58 -07:00
rawfile Build PCAP file with atomic blocking writes 2018-08-21 13:49:18 -07:00
sharedmem stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
sniffer Build PCAP file with atomic blocking writes 2018-08-21 13:49:18 -07:00
tun stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
waitable stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00