gvisor/pkg/tcpip/transport/tcp
Bhasker Hariharan 3dc3cffb2d Fix RST generation bugs.
There are a few cases addressed by this change

- We no longer generate a RST in response to a RST packet.

- When we receive a RST we cleanup and release all reservations immediately as
  the connection is now aborted.

- An ACK received by a listening socket generates a RST when SYN cookies are not
  in-use. The only reason an ACK should land at the listening socket is if we
  are using SYN cookies otherwise the goroutine for the handshake in progress
  should have gotten the packet and it should never have arrived at the
  listening endpoint.

- Also fixes the error returned when a connection times out due to a
  Keepalive timer expiration from ECONNRESET to a ETIMEDOUT.

PiperOrigin-RevId: 267238427
2019-09-04 14:59:53 -07:00
..
testing/context Make UDP traceroute work. 2019-09-03 16:01:17 -07:00
BUILD Plumbing for iptables sockopts. 2019-08-02 16:26:48 -07:00
accept.go Fix RST generation bugs. 2019-09-04 14:59:53 -07:00
connect.go Fix RST generation bugs. 2019-09-04 14:59:53 -07:00
cubic.go Add support for TCP_CONGESTION socket option. 2019-06-12 13:35:50 -07:00
cubic_state.go Add support for TCP_CONGESTION socket option. 2019-06-12 13:35:50 -07:00
dual_stack_test.go Fix for a panic due to writing to a closed accept channel. 2019-08-06 11:01:27 -07:00
endpoint.go Use tcpip.Subnet in tcpip.Route 2019-08-21 15:31:18 -07:00
endpoint_state.go netstack: move resumption logic into *_state.go 2019-08-15 11:13:46 -07:00
forwarder.go Add support for TCP receive buffer auto tuning. 2019-06-13 22:28:01 -07:00
protocol.go Make UDP traceroute work. 2019-09-03 16:01:17 -07:00
rcv.go Automated rollback of changelist 261191548 2019-08-02 12:52:40 -07:00
reno.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
sack.go Add support for TCP receive buffer auto tuning. 2019-06-13 22:28:01 -07:00
sack_scoreboard.go Automated rollback of changelist 261191548 2019-08-02 12:52:40 -07:00
sack_scoreboard_test.go Update canonical repository. 2019-06-13 16:50:15 -07:00
segment.go Update canonical repository. 2019-06-13 16:50:15 -07:00
segment_heap.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
segment_queue.go Change segment queue limit to be of fixed size. 2019-05-31 16:17:33 -07:00
segment_state.go Update canonical repository. 2019-06-13 16:50:15 -07:00
snd.go netstack/tcp: Add LastAck transition. 2019-08-26 16:39:13 -07:00
snd_state.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
tcp_noracedetector_test.go Update canonical repository. 2019-06-13 16:50:15 -07:00
tcp_sack_test.go Update canonical repository. 2019-06-13 16:50:15 -07:00
tcp_test.go Fix RST generation bugs. 2019-09-04 14:59:53 -07:00
tcp_timestamp_test.go Add support for TCP receive buffer auto tuning. 2019-06-13 22:28:01 -07:00
timer.go Update canonical repository. 2019-06-13 16:50:15 -07:00