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/wgengine/magicsock
Brad Fitzpatrick d050700a3b 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>
10 months ago
..
batching_conn.go wgengine/magicsock: factor out more separable parts 11 months ago
blockforever_conn.go wgengine/magicsock: factor out more separable parts 11 months ago
debughttp.go types/netmap, all: use read-only tailcfg.NodeView in NetworkMap 10 months ago
debugknobs.go wgengine/magicsock: make peerMap also keyed by NodeID 10 months ago
debugknobs_stubs.go wgengine/magicsock: make peerMap also keyed by NodeID 10 months ago
derp.go wgengine/magicsock: improve endpoint selection for WireGuard peers with rx time 10 months ago
discopingpurpose_string.go all: update copyright and license headers 1 year ago
dontfrag_darwin.go magicsock: set the don't fragment sockopt (#8715) 11 months ago
dontfrag_default.go magicsock: set the don't fragment sockopt (#8715) 11 months ago
dontfrag_linux.go magicsock: set the don't fragment sockopt (#8715) 11 months ago
endpoint.go wgengine/magicsock: make peerMap also keyed by NodeID 10 months ago
endpoint_default.go all: adjust some build tags for plan9 10 months ago
endpoint_stub.go all: adjust some build tags for plan9 10 months ago
endpoint_tracker.go wgengine/magicsock: only cache N most recent endpoints per-Addr 10 months ago
endpoint_tracker_test.go wgengine/magicsock: only cache N most recent endpoints per-Addr 10 months ago
magicsock.go wgengine/magicsock: make peerMap also keyed by NodeID 10 months ago
magicsock_default.go wgengine/magicsock: delete unused stuff 11 months ago
magicsock_linux.go wgengine/magicsock: clarify a log message is a warning, not an error 1 year ago
magicsock_test.go wgengine/magicsock: make peerMap also keyed by NodeID 10 months ago
magicsock_unix_test.go all: update copyright and license headers 1 year ago
peermap.go wgengine/magicsock: make peerMap also keyed by NodeID 10 months ago
rebinding_conn.go wgengine/magicsock: factor out more separable parts 11 months ago