commit | 26f93cf7018f5d8e8c6c034640163ee46a89007c | [log] [tgz] |
---|---|---|
author | Kevin Krakauer <krakauer@google.com> | Fri Feb 15 11:17:51 2019 -0800 |
committer | Shentubot <shentubot@google.com> | Fri Feb 15 11:18:18 2019 -0800 |
tree | 86421f3d0a0fa724c3b4ac0754e7a57673fc892f | |
parent | aaaa14923147e00dd108f0b8018f14f9b9305824 [diff] |
Move SO_TIMESTAMP from different transport endpoints to epsocket. SO_TIMESTAMP is reimplemented in ping and UDP sockets (and needs to be added for TCP), but can just be implemented in epsocket for simplicity. This will also make SIOCGSTAMP easier to implement. PiperOrigin-RevId: 234179300
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.