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
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>
2 years ago
..
art net/art: allow non-pointers as values 2 years ago
connstats net/connstats: exclude traffic with internal Tailscale service (#7904) 3 years ago
dns all: use Go 1.21 slices, maps instead of x/exp/{slices,maps} 2 years ago
dnscache tstest: prepare for Clock API changes 2 years ago
dnsfallback all: use Go 1.21 slices, maps instead of x/exp/{slices,maps} 2 years ago
flowtrack all: update copyright and license headers 3 years ago
interfaces ipnlocal, net/*: deprecate interfaces.GetState, use netmon more for it 2 years ago
memnet net/memnet: add optional Listener.NewConn config knob 3 years ago
netaddr all: update copyright and license headers 3 years ago
netcheck net/netcheck,wgengine/magicsock: reduce coupling between netcheck and magicsock 2 years ago
neterror net/neterror, wgengine/magicsock: use UDP GSO and GRO on Linux (#7791) 3 years ago
netknob all: update copyright and license headers 3 years ago
netmon net/netmon: factor out debounce loop, simplify polling impl 2 years ago
netns util/linuxfw: decoupling IPTables logic from linux router 2 years ago
netstat net/{netns,netstat}: use new x/sys/cpu.IsBigEndian 3 years ago
netutil cmd/tailscale: refactor shared utility methods 2 years ago
packet net/packet: add NAT support for DCCP and GRE 3 years ago
ping net/ping,netcheck: add v6 pinging capabilities to pinger (#7971) 3 years ago
portmapper net/portmapper: never select port 0 in UPnP 2 years ago
proxymux all: update copyright and license headers 3 years ago
routetable net/routetable: include unknown flags in the routetable doctor output 3 years ago
socks5 net/socks5: add password auth support 3 years ago
sockstats net/netmon: make ChangeFunc's signature take new ChangeDelta, not bool 2 years ago
speedtest all: update copyright and license headers 3 years ago
stun wgengine/magicsock, types/nettype, etc: finish ReadFromUDPAddrPort netip migration 3 years ago
tcpinfo net/tcpinfo: add package to allow fetching TCP information 2 years ago
tlsdial health, net/tlsdial: add healthcheck for self-signed cert 3 years ago
tsaddr cmd/viewer, types/views, all: un-special case slice of netip.Prefix 2 years ago
tsdial net/netmon: make ChangeFunc's signature take new ChangeDelta, not bool 2 years ago
tshttpproxy net/tshttpproxy: don't proxy through ourselves 3 years ago
tstun all: use Go 1.21 slices, maps instead of x/exp/{slices,maps} 2 years ago
wsconn all: update copyright and license headers 3 years ago