commit | e5a0626fa61857953c0ea548ee893feb3acf4091 | [log] [tgz] |
---|---|---|
author | Matt Perry <mpcomplete@google.com> | Mon Jun 12 16:14:54 2017 -0400 |
committer | Matt Perry <mpcomplete@google.com> | Mon Jun 12 16:14:54 2017 -0400 |
tree | 3564e27a5445268f34299f30cf260f7c1e568ddb | |
parent | 8cd53b116ec01603721ab1bcf628a50cf094129f [diff] |
Make the list of DNS servers configurable. This allows us to add servers provided by the DHCP client. Also, change the naming of the config variables to be a bit less confusing. Change-Id: Ic5ee59936b0cf278b004e129e90e8c3cac2f7ca2
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>
We would love to accept contributions, but we have not yet worked out how to handle them. Please contact us before sending any pull requests.
Whatever we do decide on will require signing the Google Contributor License. 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.