commit | f7c631ebfffe42f1df407bd18472bf833dd2e8d4 | [log] [tgz] |
---|---|---|
author | Tamir Duberstein <tamird@google.com> | Fri Jul 12 16:17:18 2019 -0700 |
committer | gVisor bot <gvisor-bot@google.com> | Fri Jul 12 16:17:44 2019 -0700 |
tree | 784c2daee70085b33f769a9fe2840cd4f0649a27 | |
parent | 67c87d7ff71cce418d8a2cbfab9f64a5739ad1cd [diff] |
Check that IP headers contain correct version PiperOrigin-RevId: 257888338
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.