tailscale/net/netmon
Andrew Dunham 640b2fa3ae net/netmon, wgengine/magicsock: be quieter with portmapper logs
This adds a new helper to the netmon package that allows us to
rate-limit log messages, so that they only print once per (major)
LinkChange event. We then use this when constructing the portmapper, so
that we don't keep spamming logs forever on the same network.

Updates #13145

Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
Change-Id: I6e7162509148abea674f96efd76be9dffb373ae4
2025-03-12 17:45:26 -04:00
..
defaultroute_bsd.go net/netmon: swap to swift-derived defaultRoute on macos (#11936) 2024-05-01 09:20:09 -04:00
defaultroute_darwin.go net/netmon: remove spammy log statements (#11953) 2024-05-01 12:02:16 -04:00
interfaces_android.go types/result, util/lineiter: add package for a result type, use it 2024-11-05 10:27:52 -08:00
interfaces_bsd.go net/{interfaces,netmon}, all: merge net/interfaces package into net/netmon 2024-04-28 07:34:52 -07:00
interfaces_darwin_test.go types/result, util/lineiter: add package for a result type, use it 2024-11-05 10:27:52 -08:00
interfaces_darwin.go net/{interfaces,netmon}, all: merge net/interfaces package into net/netmon 2024-04-28 07:34:52 -07:00
interfaces_default_route_test.go net/{interfaces,netmon}, all: merge net/interfaces package into net/netmon 2024-04-28 07:34:52 -07:00
interfaces_defaultrouteif_todo.go net/{interfaces,netmon}, all: merge net/interfaces package into net/netmon 2024-04-28 07:34:52 -07:00
interfaces_freebsd.go net/{interfaces,netmon}, all: merge net/interfaces package into net/netmon 2024-04-28 07:34:52 -07:00
interfaces_linux_test.go net/{interfaces,netmon}, all: merge net/interfaces package into net/netmon 2024-04-28 07:34:52 -07:00
interfaces_linux.go types/result, util/lineiter: add package for a result type, use it 2024-11-05 10:27:52 -08:00
interfaces_test.go net/{interfaces,netmon}, all: merge net/interfaces package into net/netmon 2024-04-28 07:34:52 -07:00
interfaces_windows_test.go net/{interfaces,netmon}, all: merge net/interfaces package into net/netmon 2024-04-28 07:34:52 -07:00
interfaces_windows.go net/{interfaces,netmon}, all: merge net/interfaces package into net/netmon 2024-04-28 07:34:52 -07:00
loghelper_test.go net/netmon, wgengine/magicsock: be quieter with portmapper logs 2025-03-12 17:45:26 -04:00
loghelper.go net/netmon, wgengine/magicsock: be quieter with portmapper logs 2025-03-12 17:45:26 -04:00
netmon_darwin_test.go
netmon_darwin.go net/netmon: add extra panic guard around ParseRIB 2025-02-03 12:35:35 -08:00
netmon_freebsd.go
netmon_linux_test.go types/result, util/lineiter: add package for a result type, use it 2024-11-05 10:27:52 -08:00
netmon_linux.go
netmon_polling.go
netmon_test.go net/{interfaces,netmon}, all: merge net/interfaces package into net/netmon 2024-04-28 07:34:52 -07:00
netmon_windows.go all: cleanup unused code, part 2 (#10670) 2023-12-21 17:40:03 -08:00
netmon.go net/{interfaces,netmon}, all: merge net/interfaces package into net/netmon 2024-04-28 07:34:52 -07:00
polling.go net/netmon: factor out debounce loop, simplify polling impl 2023-08-23 19:42:09 -07:00
state.go net/netmon: trim IPv6 endpoints in already routable subnets 2025-01-14 16:26:24 -08:00