commit | e04df1b027d882c71cf63a5e886a496926dde5a0 | [log] [tgz] |
---|---|---|
author | Ghanan Gowripalan <ghanan@google.com> | Wed Oct 16 22:53:20 2019 -0700 |
committer | gVisor bot <gvisor-bot@google.com> | Wed Oct 16 22:53:55 2019 -0700 |
tree | cbb656c70c7b4f28b29e3e477325100a2bd6f54c | |
parent | 8a0ff5749a2c032f6a1cba9f2a5b9f03a3ac70d3 [diff] |
Do Duplicate Address Detection on permanent IPv6 addresses. This change adds support for Duplicate Address Detection on IPv6 addresses as defined by RFC 4862 section 5.4. 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 DAD will not be performed. See `stack.Options` and `stack.NDPConfigurations` for more details. Tests: Tests to make sure that the DAD process properly resolves or fails. That is, tests make sure that DAD resolves only if: - No other node is performing DAD for the same address - No other node owns the same address PiperOrigin-RevId: 275189471
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.