summaryrefslogtreecommitdiffhomepage
path: root/types
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@tailscale.com>2025-11-15 10:28:09 -0800
committerBrad Fitzpatrick <bradfitz@tailscale.com>2025-11-18 18:11:25 -0800
commit85003d25c347ffdc4db45c2befa7d3fd10b3a304 (patch)
tree0c2ab53d08237ff166f063d4264601fdaba8b217 /types
parent408336a0891288ab3bb7466734d9646fe17fbee1 (diff)
downloadtailscale-bradfitz/nm_cache_disk.tar.xz
tailscale-bradfitz/nm_cache_disk.zip
ipn/ipnlocal: add start of netmap cachingbradfitz/nm_cache_disk
Updates #12639 Change-Id: I425d421dc6b4edd06d683ad5fc3fab72165b4b6e Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
Diffstat (limited to 'types')
-rw-r--r--types/netmap/netmap.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/types/netmap/netmap.go b/types/netmap/netmap.go
index c54562f4d..9749dc3fb 100644
--- a/types/netmap/netmap.go
+++ b/types/netmap/netmap.go
@@ -26,6 +26,8 @@ import (
// The fields should all be considered read-only. They might
// alias parts of previous NetworkMap values.
type NetworkMap struct {
+ Cached bool // whether this NetworkMap was loaded from disk cache (as opposed to live from network)
+
SelfNode tailcfg.NodeView
AllCaps set.Set[tailcfg.NodeCapability] // set version of SelfNode.Capabilities + SelfNode.CapMap
NodeKey key.NodePublic