diff options
| author | Brad Fitzpatrick <bradfitz@tailscale.com> | 2023-09-11 10:13:00 -0700 |
|---|---|---|
| committer | Brad Fitzpatrick <brad@danga.com> | 2023-09-11 12:43:47 -0700 |
| commit | d050700a3bfade74d00b559d07b7656d0fa4adf7 (patch) | |
| tree | 6fef07a7491cac720d704582830b049c2e3fa669 /control/controlknobs/controlknobs.go | |
| parent | 683ba62f3e904e5ab7c60c40a265e9d0fe84fd60 (diff) | |
| download | tailscale-d050700a3bfade74d00b559d07b7656d0fa4adf7.tar.xz tailscale-d050700a3bfade74d00b559d07b7656d0fa4adf7.zip | |
wgengine/magicsock: make peerMap also keyed by NodeID
In prep for incremental netmap update plumbing (#1909), make peerMap
also keyed by NodeID, as all the netmap node mutations passed around
later will be keyed by NodeID.
In the process, also:
* add envknob.InDevMode, as a signal that we can panic more aggressively
in unexpected cases.
* pull two moderately large blocks of code in Conn.SetNetworkMap out
into their own methods
* convert a few more sets from maps to set.Set
Updates #1909
Change-Id: I7acdd64452ba58e9d554140ee7a8760f9043f961
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
Diffstat (limited to 'control/controlknobs/controlknobs.go')
0 files changed, 0 insertions, 0 deletions
