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
Joe Tsai 2934c5114c
net/tunstats: new package to track per-connection counters (#5818)
High-level API:

	type Statistics struct { ... }
	type Counts struct { TxPackets, TxBytes, RxPackets, RxBytes uint64 }
	func (*Statistics) UpdateTx([]byte)
	func (*Statistics) UpdateRx([]byte)
	func (*Statistics) Extract() map[flowtrack.Tuple]Counts

The API accepts a []byte instead of a packet.Parsed so that a future
implementation can directly hash the address and port bytes,
which are contiguous in most IP packets.
This will be useful for a custom concurrent-safe hashmap implementation.

Signed-off-by: Joe Tsai <joetsai@digital-static.net>
2 years ago
..
dns all: consistently initialize Logf when creating tsdial.Dialers 2 years ago
dnscache all: fix spelling mistakes 2 years ago
dnsfallback refactor: move from io/ioutil to io and os packages 2 years ago
flowtrack all: convert more code to use net/netip directly 2 years ago
interfaces all: fix spelling mistakes 2 years ago
netaddr all: migrate code from netaddr.FromStdAddr to Go 1.18 2 years ago
netcheck all: fix spelling mistakes 2 years ago
neterror net/{neterror,dns/resolver}: move PacketWasTruncated to neterror from DNS code 3 years ago
netknob all: disable TCP keep-alives on iOS/Android 3 years ago
netns net/netns: implement UseSocketMark for Android. 2 years ago
netstat all: migrate more code code to net/netip directly 2 years ago
nettest all: fix spelling mistakes 2 years ago
netutil all: fix spelling mistakes 2 years ago
packet all: fix spelling mistakes 2 years ago
ping all: fix spelling mistakes 2 years ago
portmapper all: fix spelling mistakes 2 years ago
proxymux net/proxymux: add a listener mux that can run SOCKS and HTTP on a single socket. 3 years ago
routetable doctor: add package for running in-depth healthchecks; use in bugreport (#5413) 2 years ago
socks5 net/socks5: use new Go 1.19 binary.AppendByteOrder.AppendUintX 2 years ago
speedtest net/speedtest: retune to meet iperf on localhost in a VM 2 years ago
stun net/stun: unmap IPv4 addresses in 16 byte STUN replies 2 years ago
tlsdial envknob: support changing envknobs post-init 2 years ago
tsaddr all: migrate more code code to net/netip directly 2 years ago
tsdial all: fix spelling mistakes 2 years ago
tshttpproxy all: fix spelling mistakes 2 years ago
tstun all: fix spelling mistakes 2 years ago
tunstats net/tunstats: new package to track per-connection counters (#5818) 2 years ago