ipn/ipnlocal: add start of netmap caching

Updates #12639

Change-Id: I425d421dc6b4edd06d683ad5fc3fab72165b4b6e
Signed-off-by: Brad Fitzpatrick <[email protected]>
This commit is contained in:
Brad Fitzpatrick committed 2025-11-18 18:11:25 -08:00
1 parent 408336a089
commit 85003d25c3
3 files changed
+319 -8

No files matched your search

+2
View File
@@ -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