Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-04-15 | Refactor connections.go to make it easier to add new connection types. | Eyal Soha | |
Rather than have a struct for the state of each type of connection, such as TCP/IPv4, UDP/IPv4, TCP/IPv6, etc, have a state for each layer, such as UDP, TCP, IPv4, IPv6. Those states can be composed into connections. Tested: Existing unit tests still pass/fail as expected. PiperOrigin-RevId: 306703180 | |||
2020-04-13 | Add Sniffer.Drain() draining socket receive buffer | gVisor bot | |
Add Sniffer.Drain() which drains the socket's receive buffer by temporarily setting the socket to non-blocking, and receiving in a loop until EINTR, EWOULDBLOCK or EAGAIN. This method should be used when long periods of time elapses without receiving on the socket, because uninteresting packets may have piled up in the receive buffer, filling it up and causing packets critical to test operation to be dropped. PiperOrigin-RevId: 306380480 | |||
2020-04-07 | Internal change. | gVisor bot | |
PiperOrigin-RevId: 305341059 | |||
2020-03-17 | Packetimpact in Go with c++ stub | Eyal Soha | |
PiperOrigin-RevId: 301382690 |