commit | c51f3e90ad701f7737bc57bc13b0e32c40f88bcb | [log] [tgz] |
---|---|---|
author | Amanda Tait <atait@google.com> | Tue Apr 24 14:06:13 2018 -0400 |
committer | Amanda Tait <atait@google.com> | Tue Apr 24 14:06:13 2018 -0400 |
tree | a2a90cdfbb47bdf31238c2a574ecf9cae7b3da2f | |
parent | a39358b16c00d586fb0e330857ce92cce7c30026 [diff] |
[netstack] Export dhcp.{Client|Server}Port This change makes the dhcp.ClientPort and dhcp.ServerPort constants package-public, allowing them to be used in Garnet's DHCP server. test: go test passes NET-752 #progress Change-Id: Ic80dbb0d615e9cc0ae95412688ca3aa31fcafb29
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.