commit | e2d947673afd54f848e9cad30b40cea11aa896cf | [log] [tgz] |
---|---|---|
author | Tamir Duberstein <tamird@google.com> | Fri Sep 21 12:06:27 2018 -0700 |
committer | Shentubot <shentubot@google.com> | Fri Sep 21 12:07:02 2018 -0700 |
tree | 22c5ca6425562f398f2961c5d19d9293ff1587e3 | |
parent | 9d8eef39d2c741feea5fb581666d8b269885bff0 [diff] |
Export read-only tcpip.Subnet.Mask PiperOrigin-RevId: 214023383
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.