summaryrefslogtreecommitdiff
path: root/node/Peer.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-07-13 10:51:05 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-07-13 10:51:05 -0700
commit495c5ce81ddb245e21f21325927236d0f666f6cf (patch)
tree9314e377e7189cf8ccc52ed8b6ff5103a8a58f8f /node/Peer.cpp
parentdab0fb9e05677bdc6294f196fcf8234892c582c1 (diff)
downloadinfinitytier-495c5ce81ddb245e21f21325927236d0f666f6cf.tar.gz
infinitytier-495c5ce81ddb245e21f21325927236d0f666f6cf.zip
Bunch of remote tracing work.
Diffstat (limited to 'node/Peer.cpp')
-rw-r--r--node/Peer.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/node/Peer.cpp b/node/Peer.cpp
index 79a4bc90..d362be9f 100644
--- a/node/Peer.cpp
+++ b/node/Peer.cpp
@@ -72,7 +72,8 @@ void Peer::received(
const Packet::Verb verb,
const uint64_t inRePacketId,
const Packet::Verb inReVerb,
- const bool trustEstablished)
+ const bool trustEstablished,
+ const uint64_t networkId)
{
const uint64_t now = RR->node->now();
@@ -183,11 +184,11 @@ void Peer::received(
if (replacablePath) {
if (verb == Packet::VERB_OK) {
- RR->t->peerLearnedNewPath(*this,replacablePath->p,path,packetId);
+ RR->t->peerLearnedNewPath(tPtr,networkId,*this,replacablePath->p,path,packetId);
replacablePath->lr = now;
replacablePath->p = path;
} else {
- RR->t->peerConfirmingUnknownPath(*this,path,packetId,verb);
+ RR->t->peerConfirmingUnknownPath(tPtr,networkId,*this,path,packetId,verb);
attemptToContactAt(tPtr,path->localSocket(),path->address(),now,true,path->nextOutgoingCounter());
path->sent(now);
}
@@ -438,7 +439,7 @@ void Peer::redirect(void *tPtr,const int64_t localSocket,const InetAddress &remo
}
}
- RR->t->peerRedirected(*this,op,np);
+ RR->t->peerRedirected(tPtr,0,*this,op,np);
}
} // namespace ZeroTier