tailscale/types
Brad Fitzpatrick aefb1531d1 net/tsdial, ipn/ipnlocal: stop using netmap.NetworkMap in Dialer
tsdial.Dialer.SetNetMap rebuilt an O(n peers) map of MagicDNS names on
every netmap change. As we move toward per-peer incremental deltas,
this becomes quadratic. This removes it and replaces it with
SetResolveMagicDNS, a callback into LocalBackend that looks up
hostnames from nodeBackend's new nodeByName index (populated alongside
nodeByAddr/nodeByKey on both full and delta paths). The index stores
both FQDNs and short names as keys.

This is the same treatment applied to netlog (8f210454d), wglog
(988b0905b), and drive (1d6989408): stop pushing *netmap.NetworkMap
into subsystems and instead have them pull from LocalBackend's live
data via callbacks.

Updates #12542

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
Change-Id: I24557ab0c8a27636e08e4779bcfd3ec633db0a78
2026-06-24 13:14:45 -07:00
..
appctype feature/conn25: use new pool nodeattr 2026-05-29 08:29:34 -07:00
bools all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
dnstype cmd/vet: add subtestnames analyzer; fix all existing violations 2026-04-05 15:52:51 -07:00
empty all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
events wgengine/magicsock,control/controlclient: do not overwrite discokey with old key (#18606) 2026-03-20 08:56:27 -04:00
flagtype all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
geo types/geo: add support for ScalarMarshaler and ScalarUnmarshaler (#20158) 2026-06-16 16:36:43 -07:00
iox all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
ipproto all: use Go 1.26 things, run most gofix modernizers 2026-03-06 13:32:03 -08:00
jsonx types/ptr: deprecate ptr.To, use Go 1.26 new 2026-03-05 20:13:18 -08:00
key all: update more references to Tailnet/Network Lock 2026-05-15 16:23:50 +01:00
lazy all: use Go 1.26 things, run most gofix modernizers 2026-03-06 13:32:03 -08:00
logger wgengine/magicsock,types/logger: add latency logs for initial peer contacts (#19916) 2026-06-02 07:34:17 -07:00
logid all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
mapx net/tsdial, ipn/ipnlocal: stop using netmap.NetworkMap in Dialer 2026-06-24 13:14:45 -07:00
netlogfunc all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
netlogtype all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
netmap ipn/ipnlocal, types/netmap, tsnet: filter unsigned peers on delta path 2026-06-23 08:12:36 -07:00
nettype all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
opt all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
persist all: update a few more references to network/tailnet lock 2026-05-28 16:44:16 +01:00
prefs types/ptr: deprecate ptr.To, use Go 1.26 new 2026-03-05 20:13:18 -08:00
preftype all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
ptr types/ptr: deprecate ptr.To, use Go 1.26 new 2026-03-05 20:13:18 -08:00
result all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
structs all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
tkatype all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
views all: use Go 1.26 things, run most gofix modernizers 2026-03-06 13:32:03 -08:00