tailscale/net/netmon
Brad Fitzpatrick e881c1caec net/netmon: factor out debounce loop, simplify polling impl
This simplifies some netmon code in prep for other changes.

It breaks up Monitor.debounce into a helper method so locking is
easier to read and things unindent, and then it simplifies the polling
netmon implementation to remove the redundant stuff that the caller
(the Monitor.debounce loop) was already basically doing.

Updates #9040

Change-Id: Idcfb45201d00ae64017042a7bdee6ef86ad37a9f
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2023-08-23 19:42:09 -07:00
..
netmon_darwin_test.go all: move network monitoring from wgengine/monitor to net/netmon 2023-04-20 10:15:59 -07:00
netmon_darwin.go all: move network monitoring from wgengine/monitor to net/netmon 2023-04-20 10:15:59 -07:00
netmon_freebsd.go all: move network monitoring from wgengine/monitor to net/netmon 2023-04-20 10:15:59 -07:00
netmon_linux_test.go all: move network monitoring from wgengine/monitor to net/netmon 2023-04-20 10:15:59 -07:00
netmon_linux.go all: adjust case of "IPv4" and "IPv6" 2023-06-27 10:09:30 -07:00
netmon_polling.go all: move network monitoring from wgengine/monitor to net/netmon 2023-04-20 10:15:59 -07:00
netmon_test.go net/netmon: make ChangeFunc's signature take new ChangeDelta, not bool 2023-08-23 10:42:14 -07:00
netmon_windows.go all: move network monitoring from wgengine/monitor to net/netmon 2023-04-20 10:15:59 -07:00
netmon.go net/netmon: factor out debounce loop, simplify polling impl 2023-08-23 19:42:09 -07:00
polling.go net/netmon: factor out debounce loop, simplify polling impl 2023-08-23 19:42:09 -07:00