commit | c041a2d3cd02aae5be0181f8b8e8d928d048988d | [log] [tgz] |
---|---|---|
author | Haibo Xu <haibo.xu@arm.com> | Tue Jul 30 10:59:57 2019 -0700 |
committer | gVisor bot <gvisor-bot@google.com> | Tue Jul 30 11:00:29 2019 -0700 |
tree | 909b3d0c15ec620a8e2fc93048231c7337d38ba2 | |
parent | bd29f38290adc0480bbfa21405f73b8e1f3e7989 [diff] |
Change syscall.POLL to syscall.PPOLL. syscall.POLL is not supported on arm64, using syscall.PPOLL to support both the x86 and arm64. refs #63 Signed-off-by: Haibo Xu <haibo.xu@arm.com> Change-Id: I2c81a063d3ec4e7e6b38fe62f17a0924977f505e PiperOrigin-RevId: 260752049
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.