diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-10-27 15:00:16 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-10-27 15:00:16 -0700 |
| commit | 16bc3e03982286232e1df2da17d8b2fc3c5a5c55 (patch) | |
| tree | 3a506566a945a8dec8e8fb5094a9d0d5f9e91f95 /node/IncomingPacket.cpp | |
| parent | 40976c02a42b8e9078519f92a7c7412b8464e9bc (diff) | |
| download | infinitytier-16bc3e03982286232e1df2da17d8b2fc3c5a5c55.tar.gz infinitytier-16bc3e03982286232e1df2da17d8b2fc3c5a5c55.zip | |
Factor out RemotePath subclass of Path -- no longer needed, just cruft.
Diffstat (limited to 'node/IncomingPacket.cpp')
| -rw-r--r-- | node/IncomingPacket.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/node/IncomingPacket.cpp b/node/IncomingPacket.cpp index 2514cd64..7015535a 100644 --- a/node/IncomingPacket.cpp +++ b/node/IncomingPacket.cpp @@ -44,6 +44,7 @@ #include "SHA512.hpp" #include "World.hpp" #include "Cluster.hpp" +#include "Node.hpp" namespace ZeroTier { @@ -888,7 +889,7 @@ bool IncomingPacket::_doPUSH_DIRECT_PATHS(const RuntimeEnvironment *RR,const Sha { try { const uint64_t now = RR->node->now(); - const RemotePath *currentBest = peer->getBestPath(now); + const Path *currentBest = peer->getBestPath(now); unsigned int count = at<uint16_t>(ZT_PACKET_IDX_PAYLOAD); unsigned int ptr = ZT_PACKET_IDX_PAYLOAD + 2; @@ -1036,7 +1037,7 @@ bool IncomingPacket::_doCIRCUIT_TEST(const RuntimeEnvironment *RR,const SharedPt remainingHopsPtr += ZT_ADDRESS_LENGTH; SharedPtr<Peer> nhp(RR->topology->getPeer(nextHop[h])); if (nhp) { - RemotePath *const rp = nhp->getBestPath(now); + Path *const rp = nhp->getBestPath(now); if (rp) nextHopBestPathAddress[h] = rp->address(); } |
