commit | 1ac269f4fba5145d17a953e8f2b2e7945ea7a394 | [log] [tgz] |
---|---|---|
author | Ghanan Gowripalan <ghanan@google.com> | Tue Oct 22 14:40:27 2019 -0700 |
committer | gVisor bot <gvisor-bot@google.com> | Tue Oct 22 14:40:57 2019 -0700 |
tree | df45ebaa77cacac6be880db0467f12607967db17 | |
parent | 325363d09f6e87b77021a1be7ab6da67e453b829 [diff] |
Add a type to represent the NDP Router Advertisement message. This change is in preparation for NDP Router Discovery where the stack will need to handle NDP Router Advertisments. Tests: Test that given an NDP Router Advertisement buffer (body of an ICMPv6 packet, correct values are returned by the field getters). PiperOrigin-RevId: 276146817
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.