commit | 92c355eb3069456fb31f9386d1d50a02eaffd652 | [log] [tgz] |
---|---|---|
author | Tamir Duberstein <tamird@google.com> | Wed Jul 31 07:39:52 2019 -0700 |
committer | gVisor bot <gvisor-bot@google.com> | Wed Jul 31 07:40:22 2019 -0700 |
tree | 77cd5ed0bc10dd252392110f585ebbdbc89859f0 | |
parent | d3e656311eceb2edba1e003242eee6ae80b8cdca [diff] |
Test connecting UDP sockets to the ANY address This doesn't currently pass on gVisor. While I'm here, fix a bug where connecting to the v6-mapped v4 address doesn't work in gVisor. PiperOrigin-RevId: 260923961
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.