commit | 948f596d84b9065758710da30aab1d330e1e1c55 | [log] [tgz] |
---|---|---|
author | Tamir Duberstein <tamird@google.com> | Fri Oct 18 14:02:52 2019 -0700 |
committer | gVisor bot <gvisor-bot@google.com> | Fri Oct 18 14:03:25 2019 -0700 |
tree | 0817223ee42d062274105d400f1de182cf35dc43 | |
parent | 484dce7fc7091c44da63e4ca3d7bb9bf5975c94e [diff] |
Remove restrictions on the sending address It is quite legal to send from the ANY address (it is required for DHCP). I can't figure out why the broadcast address was included here, so removing that as well. PiperOrigin-RevId: 275541954
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.
Netstack is primarily developed as part of gVisor and any issues/bugs should be filed against the gVisor repository as this repo is not actively monitored for bug reports.
This is not an official Google product (experimental or otherwise), it is just code that happens to be owned by Google.