mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-05 20:41:44 -07:00
Port multipath improvements to newer version
This commit is contained in:
parent
024649c175
commit
2e6cda38f6
9 changed files with 120 additions and 47 deletions
|
@ -84,6 +84,7 @@ public:
|
|||
_lastIn(0),
|
||||
_lastTrustEstablishedPacketReceived(0),
|
||||
_lastEchoRequestReceived(0),
|
||||
_localPort(0),
|
||||
_localSocket(-1),
|
||||
_latencyMean(0.0),
|
||||
_latencyVariance(0.0),
|
||||
|
@ -106,6 +107,7 @@ public:
|
|||
_lastIn(0),
|
||||
_lastTrustEstablishedPacketReceived(0),
|
||||
_lastEchoRequestReceived(0),
|
||||
_localPort(0),
|
||||
_localSocket(localSocket),
|
||||
_latencyMean(0.0),
|
||||
_latencyVariance(0.0),
|
||||
|
@ -177,6 +179,11 @@ public:
|
|||
*/
|
||||
inline int64_t localSocket() const { return _localSocket; }
|
||||
|
||||
/**
|
||||
* @return Local port corresponding to the localSocket
|
||||
*/
|
||||
inline int64_t localPort() const { return _localPort; }
|
||||
|
||||
/**
|
||||
* @return Physical address
|
||||
*/
|
||||
|
@ -375,6 +382,7 @@ private:
|
|||
|
||||
int64_t _lastEchoRequestReceived;
|
||||
|
||||
uint16_t _localPort;
|
||||
int64_t _localSocket;
|
||||
|
||||
volatile float _latencyMean;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue