You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/net
Mihai Parparita f4f8ed98d9 sockstats: add validation for TCP socket stats
We can use the TCP_CONNECTION_INFO getsockopt() on Darwin to get
OS-collected tx/rx bytes for TCP sockets. Since this API is not available
for UDP sockets (or on Linux/Android), we can't rely on it for actual
stats gathering.

However, we can use it to validate the stats that we collect ourselves
using read/write hooks, so that we can be more confident in them. We
do need additional hooks from the Go standard library (added in
tailscale/go#59) to be able to collect them.

Updates tailscale/corp#9230
Updates #3363

Signed-off-by: Mihai Parparita <mihai@tailscale.com>
2 years ago
..
connstats net/connstats: fix ticker in NewStatistics (#7225) 2 years ago
dns sockstats: switch label to enum 2 years ago
dnscache tstest: add method to Replace values for tests 2 years ago
dnsfallback util/slicesx: add package for generic slice functions, use 2 years ago
flowtrack all: update copyright and license headers 2 years ago
interfaces all: use tstest.Replace more 2 years ago
memnet net/memnet: rename from net/nettest 2 years ago
netaddr all: update copyright and license headers 2 years ago
netcheck sockstats: switch label to enum 2 years ago
neterror all: update copyright and license headers 2 years ago
netknob all: update copyright and license headers 2 years ago
netns net/interfaces, net/netns: add node attributes to control default interface getting and binding 2 years ago
netstat net/{netns,netstat}: use new x/sys/cpu.IsBigEndian 2 years ago
netutil net/netutil: only check Linux sysctls w/ procfs, assume absent means false 2 years ago
packet all: update copyright and license headers 2 years ago
ping all: update copyright and license headers 2 years ago
portmapper sockstats: switch label to enum 2 years ago
proxymux all: update copyright and license headers 2 years ago
routetable net/routetable: include unknown flags in the routetable doctor output 2 years ago
socks5 net/socks5: add password auth support 2 years ago
sockstats sockstats: add validation for TCP socket stats 2 years ago
speedtest all: update copyright and license headers 2 years ago
stun all: use Go 1.20's bytes.Clone 2 years ago
tlsdial health, net/tlsdial: add healthcheck for self-signed cert 2 years ago
tsaddr all: update copyright and license headers 2 years ago
tsdial all: update copyright and license headers 2 years ago
tshttpproxy all: use tstest.Replace more 2 years ago
tstun wgengine: start logging DISCO frames to pcap stream 2 years ago
wsconn all: update copyright and license headers 2 years ago