mirror of
https://github.com/slackhq/nebula.git
synced 2026-08-15 06:07:00 +02:00
Fold the rebind counter and traffic flags into one atomic word
This commit is contained in:
+2
-2
@@ -82,8 +82,8 @@ type Interface struct {
|
||||
sendRecvErrorConfig recvErrorConfig
|
||||
acceptRecvErrorConfig recvErrorConfig
|
||||
|
||||
// rebindCount is used to decide if an active tunnel should trigger a punch notification through a lighthouse
|
||||
rebindCount int8
|
||||
// Bumped on every udp rebind, tunnels compare it to decide they need a punch from the far side
|
||||
rebindEpoch atomic.Uint32
|
||||
version string
|
||||
|
||||
conntrackCacheTimeout time.Duration
|
||||
|
||||
Reference in New Issue
Block a user