summaryrefslogtreecommitdiffhomepage
path: root/control/controlknobs/controlknobs.go
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@tailscale.com>2023-09-01 19:28:00 -0700
committerBrad Fitzpatrick <brad@danga.com>2023-09-12 12:23:24 -0700
commit3af051ea27a37acd1ffc73583d5ad2b19c60edd1 (patch)
treedc7adf2c6a58b9f85d6921a66a5a279d1b78583f /control/controlknobs/controlknobs.go
parentc0ade132e6e8712c899ef03303ef135f5c238636 (diff)
downloadtailscale-3af051ea27a37acd1ffc73583d5ad2b19c60edd1.tar.xz
tailscale-3af051ea27a37acd1ffc73583d5ad2b19c60edd1.zip
control/controlclient, types/netmap: start plumbing delta netmap updates
Currently only the top four most popular changes: endpoints, DERP home, online, and LastSeen. Updates #1909 Change-Id: I03152da176b2b95232b56acabfb55dcdfaa16b79 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
Diffstat (limited to 'control/controlknobs/controlknobs.go')
-rw-r--r--control/controlknobs/controlknobs.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/control/controlknobs/controlknobs.go b/control/controlknobs/controlknobs.go
index dc24faac2..96c284dca 100644
--- a/control/controlknobs/controlknobs.go
+++ b/control/controlknobs/controlknobs.go
@@ -38,6 +38,11 @@ type Knobs struct {
// ForceBackgroundSTUN forces netcheck STUN queries to keep
// running in magicsock, even when idle.
ForceBackgroundSTUN atomic.Bool
+
+ // DisableDeltaUpdates is whether the node should not process
+ // incremental (delta) netmap updates and should treat all netmap
+ // changes as "full" ones as tailscaled did in 1.48.x and earlier.
+ DisableDeltaUpdates atomic.Bool
}
// AsDebugJSON returns k as something that can be marshalled with json.Marshal
@@ -53,5 +58,6 @@ func (k *Knobs) AsDebugJSON() map[string]any {
"RandomizeClientPort": k.RandomizeClientPort.Load(),
"OneCGNAT": k.OneCGNAT.Load(),
"ForceBackgroundSTUN": k.ForceBackgroundSTUN.Load(),
+ "DisableDeltaUpdates": k.DisableDeltaUpdates.Load(),
}
}