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 cf520a3371 feature/featuretags: add LazyWG modular feature
Due to iOS memory limitations in 2020 (see
https://tailscale.com/blog/go-linker, etc) and wireguard-go using
multiple goroutines per peer, commit 16a9cfe2f4 introduced some
convoluted pathsways through Tailscale to look at packets before
they're delivered to wireguard-go and lazily reconfigure wireguard on
the fly before delivering a packet, only telling wireguard about peers
that are active.

We eventually want to remove that code and integrate wireguard-go's
configuration with Tailscale's existing netmap tracking.

To make it easier to find that code later, this makes it modular. It
saves 12 KB (of disk) to turn it off (at the expense of lots of RAM),
but that's not really the point. The point is rather making it obvious
(via the new constants) where this code even is.

Updates #12614

Change-Id: I113b040f3e35f7d861c457eaa710d35f47cee1cb
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2 months ago
..
blockforever_conn.go wgengine/magicsock: improve don't fragment bit set/get support 2 years ago
cloudinfo.go feature/featuretags, all: add build features, use existing ones in more places 2 months ago
cloudinfo_nocloud.go wgengine/magicsock: use cloud metadata to get public IPs 1 year ago
cloudinfo_test.go wgengine/magicsock: use cloud metadata to get public IPs 1 year ago
debughttp.go feature/featuretags: add a catch-all "Debug" feature flag 2 months ago
debugknobs.go wgengine/magicsock: add TS_DEBUG_NEVER_DIRECT_UDP debug knob (#17094) 3 months ago
debugknobs_stubs.go wgengine/magicsock: add TS_DEBUG_NEVER_DIRECT_UDP debug knob (#17094) 3 months ago
derp.go util/backoff: rename logtail/backoff package to util/backoff 2 months ago
derp_test.go net/netcheck,wgengine/magicsock: align DERP frame receive time heuristics 2 years ago
discopingpurpose_string.go wgengine/magicsock: implement probing of UDP path lifetime (#10844) 2 years ago
endpoint.go wgengine/magicsock: remove misleading unexpected log message (#17445) 2 months ago
endpoint_default.go all: adjust some build tags for plan9 2 years ago
endpoint_stub.go all: adjust some build tags for plan9 2 years ago
endpoint_test.go net/{batching,packet},wgengine/magicsock: export batchingConn (#16848) 4 months ago
endpoint_tracker.go wgengine/magicsock: only cache N most recent endpoints per-Addr 2 years ago
endpoint_tracker_test.go all: use Go 1.22 range-over-int 2 years ago
magicsock.go feature/featuretags: add LazyWG modular feature 2 months ago
magicsock_default.go feature/featuretags, all: add build features, use existing ones in more places 2 months ago
magicsock_linux.go feature/featuretags, all: add build features, use existing ones in more places 2 months ago
magicsock_linux_test.go wgengine/magicsock: fix bpf fragmentation jump offsets (#16204) 6 months ago
magicsock_notplan9.go wgengine/magicsock: refactor maybeRebindOnError 11 months ago
magicsock_plan9.go wgengine/magicsock: refactor maybeRebindOnError 11 months ago
magicsock_test.go wgengine/magicsock: fix rebind debouncing (#17282) 2 months ago
peermap.go net/{batching,packet},wgengine/magicsock: export batchingConn (#16848) 4 months ago
peermap_test.go net/{batching,packet},wgengine/magicsock: export batchingConn (#16848) 4 months ago
peermtu.go magicsock: mute noisy expected peer mtu related error (#10870) 2 years ago
peermtu_darwin.go wgengine/magicsock: improve don't fragment bit set/get support 2 years ago
peermtu_linux.go wgengine/magicsock: improve don't fragment bit set/get support 2 years ago
peermtu_stubs.go magicsock: mute noisy expected peer mtu related error (#10870) 2 years ago
peermtu_unix.go wgengine/magicsock: replace CanPMTUD() with ShouldPMTUD() 2 years ago
rebinding_conn.go net/{batching,packet},wgengine/magicsock: export batchingConn (#16848) 4 months ago
relaymanager.go wgengine/magicsock: fix relayManager deadlock (#17449) 2 months ago
relaymanager_test.go wgengine/magicsock: fix relayManager deadlock (#17449) 2 months ago