commit | dab2ef09dae0c18277efdad82f623afa361d841c | [log] [tgz] |
---|---|---|
author | Rahat Mahmood <rahat@google.com> | Thu Aug 01 13:57:41 2019 -0700 |
committer | gVisor bot <gvisor-bot@google.com> | Thu Aug 01 13:58:19 2019 -0700 |
tree | 99f88ae21e73cb6988731af35f7a13dba621b855 | |
parent | f43f10f489df31f34f0f049fa1ed551b40565f08 [diff] |
Implement getsockopt(TCP_INFO). Export some readily-available fields for TCP_INFO and stub out the rest. PiperOrigin-RevId: 261191548
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.