diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-07-11 18:15:51 -0400 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-07-11 18:15:51 -0400 |
| commit | fd2b383c3e8e1a4b81454611b966c6c775c03913 (patch) | |
| tree | 7fc2eaef2df20a0e33ac30d77743d219ac6d6494 /node/Peer.cpp | |
| parent | ae93c95151adf3806b6d9eb1cedc2bf1f034655e (diff) | |
| download | infinitytier-fd2b383c3e8e1a4b81454611b966c6c775c03913.tar.gz infinitytier-fd2b383c3e8e1a4b81454611b966c6c775c03913.zip | |
Work in progress...
Diffstat (limited to 'node/Peer.cpp')
| -rw-r--r-- | node/Peer.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/node/Peer.cpp b/node/Peer.cpp index 09732947..14eb49f0 100644 --- a/node/Peer.cpp +++ b/node/Peer.cpp @@ -43,7 +43,7 @@ Peer::Peer(const Identity &myIdentity,const Identity &peerIdentity) throw std::runtime_error("new peer identity key agreement failed"); } -void Peer::onReceive(const RuntimeEnvironment *_r,Demarc::Port localPort,const InetAddress &fromAddr,unsigned int latency,unsigned int hops,Packet::Verb verb,uint64_t now) +void Peer::onReceive(const RuntimeEnvironment *_r,Demarc::Port localPort,const InetAddress &fromAddr,unsigned int hops,Packet::Verb verb,uint64_t now) { if (!hops) { // direct packet WanPath *wp = (fromAddr.isV4() ? &_ipv4p : &_ipv6p); @@ -51,8 +51,6 @@ void Peer::onReceive(const RuntimeEnvironment *_r,Demarc::Port localPort,const I wp->lastReceive = now; if (verb == Packet::VERB_FRAME) wp->lastUnicastFrame = now; - if (latency) - wp->latency = latency; wp->localPort = localPort; if (!wp->fixed) wp->addr = fromAddr; |
