commit | 5becf1edf95f07f628b2aa0ea091005cc0d5820c | [log] [tgz] |
---|---|---|
author | Bert Muthalaly <stijlist@google.com> | Tue Mar 19 08:29:37 2019 -0700 |
committer | Shentubot <shentubot@google.com> | Tue Mar 19 08:30:04 2019 -0700 |
tree | f78f70f3aad60ae6abbeb8fa85e2e1b589acf430 | |
parent | ded3d7360e1a7d99d94c1cf2c0b344d4bc6e1d83 [diff] |
Add layer 2 stats (tx, rx) X (packets, bytes) to netstack PiperOrigin-RevId: 239194420
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.