64-bit varibles that are accessed using the Go atomic functions must be
8-byte aligned on 32-bit platforms. Otherwise there are crashes.
*/
type KeyPair struct {
+ sendNonce uint64
send cipher.AEAD
receive cipher.AEAD
replayFilter ReplayFilter
- sendNonce uint64
isInitiator bool
created time.Time
localIndex uint32
)
type Peer struct {
+ persistentKeepaliveInterval uint64
isRunning AtomicBool
mutex sync.RWMutex
- persistentKeepaliveInterval uint64
keyPairs KeyPairs
handshake Handshake
device *Device