summaryrefslogtreecommitdiff
path: root/node/Network.hpp
diff options
context:
space:
mode:
authorGrant Limberg <grant.limberg@zerotier.com>2017-10-02 15:52:57 -0700
committerGrant Limberg <grant.limberg@zerotier.com>2017-10-02 15:52:57 -0700
commitb1d60df44cb24589bc5718da932ef4bb54168fa3 (patch)
treec240b5b626f534f4a3673bedbdf6d80b59a8d475 /node/Network.hpp
parent7cf70d111ac3bfc1bf6aa7e3ec8d9c83e35f48a1 (diff)
downloadinfinitytier-b1d60df44cb24589bc5718da932ef4bb54168fa3.tar.gz
infinitytier-b1d60df44cb24589bc5718da932ef4bb54168fa3.zip
timestamps changed from uint64_t to int64_t
There were cases in the code where time calculations and comparisons were overflowing and causing connection instability. This will keep time calculations within expected ranges.
Diffstat (limited to 'node/Network.hpp')
-rw-r--r--node/Network.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/node/Network.hpp b/node/Network.hpp
index d4d217f2..1b4da7d2 100644
--- a/node/Network.hpp
+++ b/node/Network.hpp
@@ -305,7 +305,7 @@ public:
* @param mg Multicast group
* @param now Current time
*/
- void learnBridgedMulticastGroup(void *tPtr,const MulticastGroup &mg,uint64_t now);
+ void learnBridgedMulticastGroup(void *tPtr,const MulticastGroup &mg,int64_t now);
/**
* Validate a credential and learn it if it passes certificate and other checks
@@ -357,7 +357,7 @@ public:
* @param to Destination peer address
* @param now Current time
*/
- inline void pushCredentialsNow(void *tPtr,const Address &to,const uint64_t now)
+ inline void pushCredentialsNow(void *tPtr,const Address &to,const int64_t now)
{
Mutex::Lock _l(_lock);
_membership(to).pushCredentials(RR,tPtr,now,to,_config,-1,true);