tailscale/ipn
Mihai Parparita b64d78d58f sockstats: refactor validation to be opt-in
Followup to #7499 to make validation a separate function (
GetWithValidation vs. Get). This way callers that don't need it don't
pay the cost of a syscall per active TCP socket.

Also clears the conn on close, so that we don't double-count the stats.

Also more consistently uses Go doc comments for the exported API of the
sockstats package.

Updates tailscale/corp#9230
Updates #3363

Signed-off-by: Mihai Parparita <mihai@tailscale.com>
2023-03-09 14:31:20 -08:00
..
ipnauth all: update copyright and license headers 2023-01-27 15:36:29 -08:00
ipnlocal sockstats: refactor validation to be opt-in 2023-03-09 14:31:20 -08:00
ipnserver all: update copyright and license headers 2023-01-27 15:36:29 -08:00
ipnstate cmd/tailscale: surface node-key for locked out tailnet-lock peers 2023-03-09 11:06:23 -10:00
localapi all: implement preauth-key support with tailnet lock 2023-03-08 11:56:46 -10:00
policy all: update copyright and license headers 2023-01-27 15:36:29 -08:00
store all: use Go 1.20's bytes.Clone 2023-02-01 17:39:18 -08:00
backend.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
doc.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
fake_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
ipn_clone.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
ipn_view.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
prefs_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
prefs.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
serve.go ipn/ipnlocal: add support for funnel in tsnet 2023-03-09 12:53:00 -08:00
store.go ipn: remove unused NLKeyStateKey constant 2023-02-08 11:19:28 -08:00