tailscale/wgengine
James Tucker 6cfcb3cae4 wgengine/magicsock: fix synchronization of endpoint disco fields
Identified in review in #7821 endpoint.discoKey and endpoint.discoShort
are often accessed without first taking endpoint.mu. The arrangement
with endpoint.mu is inconvenient for a good number of those call-sites,
so it is instead replaced with an atomic pointer to carry both pieces of
disco info. This will also help with #7821 that wants to add explicit
checks/guards to disable disco behaviors when disco keys are missing
which is necessarily implicitly mostly covered by this change.

Updates #7821

Signed-off-by: James Tucker <james@tailscale.com>
2023-04-08 17:15:54 -07:00
..
bench all: update copyright and license headers 2023-01-27 15:36:29 -08:00
capture net, wgengine/capture: encode NAT addresses in pcap stream 2023-04-06 13:26:00 -07:00
filter all: use tstest.Replace more 2023-03-04 12:24:55 -08:00
magicsock wgengine/magicsock: fix synchronization of endpoint disco fields 2023-04-08 17:15:54 -07:00
monitor net/sockstats: remove explicit dependency on wgengine/monitor 2023-03-03 08:37:14 -08:00
netlog sockstats: add labels for netlog and sockstatlog packages 2023-03-29 14:53:07 -07:00
netstack envknob,net/tstun,wgengine: use TS_DEBUG_MTU consistently 2023-03-30 14:26:10 -07:00
router envknob,net/tstun,wgengine: use TS_DEBUG_MTU consistently 2023-03-30 14:26:10 -07:00
wgcfg net/tstun,wgengine/*: add support for NAT to routes 2023-03-29 12:30:18 -07:00
wgint all: update copyright and license headers 2023-01-27 15:36:29 -08:00
wglog all: update copyright and license headers 2023-01-27 15:36:29 -08:00
winnet all: update copyright and license headers 2023-01-27 15:36:29 -08:00
mem_ios.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
pendopen.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
userspace.go net/tstun,wgengine/*: add support for NAT to routes 2023-03-29 12:30:18 -07:00
userspace_ext_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
userspace_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
watchdog.go wgengine: start logging DISCO frames to pcap stream 2023-02-10 11:22:34 -10:00
watchdog_js.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
watchdog_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
wgengine.go wgengine: start logging DISCO frames to pcap stream 2023-02-10 11:22:34 -10:00