commit | 38758f690bf4d680ffc04ba5ed4f03bd87a85bfe | [log] [tgz] |
---|---|---|
author | David Crawshaw <crawshaw@google.com> | Fri Apr 21 15:37:16 2017 -0400 |
committer | David Crawshaw <crawshaw@google.com> | Mon Apr 24 10:27:21 2017 -0400 |
tree | a853fcd01bda8ac37417d426f629574dff6fcad1 | |
parent | d8f91f60e1aa0de71bbcaa017b8aaaba1cea95d8 [diff] |
dhcp: govern client lifecycle with a context Also move the renewal logic into the same even loop that drives the initial request, to make it a little easier to understand. Change-Id: I14197ebce925e746504e9b9fcfb424aad67ee6ba
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.