gvisor/pkg/tcpip
Bhasker Hariharan 56cadcac4e Fixes to PacketMMap dispatcher.
This CL fixes the following bugs:

- Uses atomic to set/read status instead of binary.LittleEndian.PutUint32 etc
which are not atomic.

- Increments ringOffsets for frames that are truncated (i.e status is
  tpStatusCopy)

- Does not ignore frames with tpStatusLost bit set as they are valid frames and
  only indicate that there some frames were lost before this one and metrics can
  be retrieved with a getsockopt call.

- Adds checks to make sure blockSize is a multiple of page size. This is
  required as the kernel allocates in pages per block and rejects sizes that are
  not page aligned with an EINVAL.

Updates #210

PiperOrigin-RevId: 244959464
Change-Id: I5d61337b7e4c0f8a3063dcfc07791d4c4521ba1f
2019-04-23 17:47:56 -07:00
..
adapters/gonet tcpip/transport/udp: add Forwarder type 2019-04-18 17:49:57 -07:00
buffer Remove license comments 2019-01-31 11:12:53 -08:00
checker Remove license comments 2019-01-31 11:12:53 -08:00
hash/jenkins Remove license comments 2019-01-31 11:12:53 -08:00
header Add TCP checksum verification. 2019-04-09 11:23:47 -07:00
link Fixes to PacketMMap dispatcher. 2019-04-23 17:47:56 -07:00
network Add ICMP stats 2019-03-28 14:09:20 -07:00
ports Remove license comments 2019-01-31 11:12:53 -08:00
sample Return error from fdbased.New 2019-04-17 11:16:35 -07:00
seqnum Remove license comments 2019-01-31 11:12:53 -08:00
stack Add TCP checksum verification. 2019-04-09 11:23:47 -07:00
transport tcpip/transport/tcp: read side only shutdown of an endpoint 2019-04-19 19:29:05 -07:00
BUILD Remove license comments 2019-01-31 11:12:53 -08:00
tcpip.go Add TCP checksum verification. 2019-04-09 11:23:47 -07:00
tcpip_test.go Implement Stringer for tcpip.StatCounter 2019-01-08 12:35:35 -08:00
time.s Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
time_unsafe.go Whitelist Go 1.12 for tcpip/time_unsafe.go 2018-12-04 15:52:14 -08:00