commit | c68c440d9d683158594fcac493095b26d241374b | [log] [tgz] |
---|---|---|
author | Ghanan Gowripalan <ghanan@google.com> | Thu Oct 24 16:51:41 2019 -0700 |
committer | gVisor bot <gvisor-bot@google.com> | Thu Oct 24 16:52:09 2019 -0700 |
tree | 4f4162fc761e45f107d04cb97d7783dd6f541e7e | |
parent | a4437b2921892a68f23c260492c0920d02291238 [diff] |
Add a type to represent the NDP Prefix Information option. This change is in preparation for NDP Prefix Discovery and SLAAC where the stack will need to handle NDP Prefix Information options. Tests: Test that given an NDP Prefix Information option buffer, correct values are returned by the field getters. PiperOrigin-RevId: 276594592
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.