commit | d3e656311eceb2edba1e003242eee6ae80b8cdca | [log] [tgz] |
---|---|---|
author | Tamir Duberstein <tamird@google.com> | Tue Jul 30 15:05:20 2019 -0700 |
committer | gVisor bot <gvisor-bot@google.com> | Tue Jul 30 15:05:49 2019 -0700 |
tree | a27cd07885d6ac87158cb8f5022d39c01a52c48c | |
parent | c041a2d3cd02aae5be0181f8b8e8d928d048988d [diff] |
Pass ProtocolAddress instead of its fields PiperOrigin-RevId: 260803517
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.