commit | 19f8a636a0ec317b5ba2b9524802947f5d7182c9 | [log] [tgz] |
---|---|---|
author | Tamir Duberstein <tamird@google.com> | Tue Jul 23 12:09:15 2019 -0700 |
committer | gVisor bot <gvisor-bot@google.com> | Tue Jul 23 12:09:41 2019 -0700 |
tree | 55e56e61adc31c3ee8ac5dee937b6a9a97c804ed | |
parent | b1069440d16160b2dad846fbd92937cda505d301 [diff] |
Deduplicate EndpointState.connected some This fixes a bug introduced in cl/251934850 that caused connect-accept-close-connect races to result in the second connect call failiing when it should have succeeded. PiperOrigin-RevId: 259584525
Netstack is a network stack written in Go.
Try it out on Linux by installing the tun_tcp_echo demo:
go install github.com/google/netstack/tcpip/sample/tun_tcp_echo
Create a TUN device with:
[sudo] ip tuntap add user <username> mode tun <device-name> [sudo] ip link set <device-name> up [sudo] ip addr add <ipv4-address>/<mask-length> dev <device-name>
Then run with:
tun_tcp_echo <device-name> <ipv4-address> <port>
Please see CONTRIBUTING.md for more details.
This is not an official Google product (experimental or otherwise), it is just code that happens to be owned by Google.