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
Brad Fitzpatrick 9afffd3592 wgengine: simplify how discokey change session dropping is implemented
When a discokey changes, we take that as a sign that the peer
restarted and our previous wireguard-go session state is invalid. What
we did previously was reconfig the wireguard-go Device with all peers
but the ones that changed, and then add them back.

Instead, just synchronously delete a single peer from wireguard-go
when we see that it's changed, and then let it be added back later by
the one Reconfig. This avoids a second reconfig and some twisty code.
(Plenty more twisty code yet to delete...)

Updates #17858

Change-Id: I084d51c26e368c909091da403bbf6b59d929e5af
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
1 month ago
..
bench types/netmap: remove PrivateKey from NetworkMap 1 month ago
filter wgengine/filter: add check for unknown proto 11 months ago
magicsock net/tstun: add TSMPDiscoAdvertisement to TSMPPing (#17995) 1 month ago
netlog wgengine/netlog: strip dot suffix from node name (#17954) 1 month ago
netstack all: rename variables with lowercase-l/uppercase-I 1 month ago
router all: rename variables with lowercase-l/uppercase-I 1 month ago
wgcfg types/netmap: remove PrivateKey from NetworkMap 1 month ago
wgint wgengine{,/wgint}: add wgint.Peer wrapper type, add to wgengine.Engine 2 years ago
wglog all: use Go 1.22 range-over-int 2 years ago
winnet all: add test for package comments, fix, add comments as needed 1 year ago
mem_ios.go all: update copyright and license headers 3 years ago
pendopen.go wgengine: stop importing flowtrack when unused 3 months ago
pendopen_omit.go wgengine: stop importing flowtrack when unused 3 months ago
userspace.go wgengine: simplify how discokey change session dropping is implemented 1 month ago
userspace_ext_test.go health,ipn/ipnlocal: introduce eventbus in heath.Tracker (#17085) 3 months ago
userspace_test.go net/tstun: add TSMPDiscoAdvertisement to TSMPPing (#17995) 1 month ago
watchdog.go ipn/ipnlocal: remove all the weird locking (LockedOnEntry, UnlockEarly, etc) 2 months ago
watchdog_omit.go ipn/ipnlocal, engine: avoid runtime/pprof with two usages of ts_omit_debug 3 months ago
watchdog_test.go health,ipn/ipnlocal: introduce eventbus in heath.Tracker (#17085) 3 months ago
wgengine.go ipn/ipnlocal: remove all the weird locking (LockedOnEntry, UnlockEarly, etc) 2 months ago