commit | b1069440d16160b2dad846fbd92937cda505d301 | [log] [tgz] |
---|---|---|
author | Chris Kuiper <ckuiper@google.com> | Fri Jul 19 09:27:33 2019 -0700 |
committer | gVisor bot <gvisor-bot@google.com> | Fri Jul 19 09:28:00 2019 -0700 |
tree | 94dde848812f5abf0f8ef93245607232b696fe8d | |
parent | 75dd5c19922ddfd05e1e29a5d8867d7dc2146a98 [diff] |
Handle interfaceAddr and NIC options separately for IP_MULTICAST_IF This tweaks the handling code for IP_MULTICAST_IF to ignore the InterfaceAddr if a NICID is given. PiperOrigin-RevId: 258982541
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.
This is not an official Google product (experimental or otherwise), it is just code that happens to be owned by Google.