commit | 9232beb1130887bf52f0b0e9f8dc28c938d1bd66 | [log] [tgz] |
---|---|---|
author | Noah Gold <nkgold@google.com> | Tue Mar 12 15:35:32 2019 -0700 |
committer | Shentubot <shentubot@google.com> | Tue Mar 12 15:36:00 2019 -0700 |
tree | c22ac2db1dc9d43757547b8a509c04ffb5eb805c | |
parent | 0754aa92ef99a042c09f3d37c4ee4fbbc9694949 [diff] |
Make gonet.PacketConn implement net.Conn. gonet.PacketConn now implements net.Conn, allowing it to be returned from net.Dial.Dialer functions. PiperOrigin-RevId: 238111980
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.