commit | ba5a7f4f9f05b69fdeec036bbfc2826d63b07b74 | [log] [tgz] |
---|---|---|
author | Ghanan Gowripalan <ghanan@google.com> | Tue Oct 22 07:25:35 2019 -0700 |
committer | gVisor bot <gvisor-bot@google.com> | Tue Oct 22 07:26:03 2019 -0700 |
tree | 1446dc29c1b1c1bd28858005c176c983a5340a3f | |
parent | 15e69a7a21af2508c7c2dfe97c263c661cf37b49 [diff] |
Auto-generate an IPv6 link-local address based on the NIC's MAC Address. This change adds support for optionally auto-generating an IPv6 link-local address based on the NIC's MAC Address on NIC enable. Note, this change will not break existing uses of netstack as the default configuration for the stack options is set in such a way that a link-local address will not be auto-generated unless the stack is explicitly configured. See `stack.Options` for more details. Specifically, see `stack.Options.AutoGenIPv6LinkLocal`. Tests: Tests to make sure that the IPb6 link-local address is only auto-generated if the stack is specifically configured to do so. Also tests to make sure that an auto-generated address goes through the DAD process. PiperOrigin-RevId: 276059813
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.