summaryrefslogtreecommitdiff
path: root/node/Node.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-01-06 11:38:11 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-01-06 11:38:11 -0800
commitff9317365a1d9498076b0971f0209fc2aec5c142 (patch)
tree108e2022662732946807a55fa61c4896780e590a /node/Node.cpp
parentb8059d5c879ef02865198634679a7c04fda44949 (diff)
parent0a3ef38cade03c9b6a4f94611bd3df620ce1f4e6 (diff)
downloadinfinitytier-ff9317365a1d9498076b0971f0209fc2aec5c142.tar.gz
infinitytier-ff9317365a1d9498076b0971f0209fc2aec5c142.zip
Merge branch 'dev' into edge
Diffstat (limited to 'node/Node.cpp')
-rw-r--r--node/Node.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/node/Node.cpp b/node/Node.cpp
index f077424b..7e4ad642 100644
--- a/node/Node.cpp
+++ b/node/Node.cpp
@@ -244,20 +244,20 @@ public:
// "Upstream" devices are roots and relays and get special treatment -- they stay alive
// forever and we try to keep (if available) both IPv4 and IPv6 channels open to them.
bool needToContactIndirect = true;
- if (p->doPingAndKeepalive(RR,_now,AF_INET)) {
+ if (p->doPingAndKeepalive(_now,AF_INET)) {
needToContactIndirect = false;
} else {
if (stableEndpoint4) {
needToContactIndirect = false;
- p->sendHELLO(RR,InetAddress(),stableEndpoint4,_now);
+ p->sendHELLO(InetAddress(),stableEndpoint4,_now);
}
}
- if (p->doPingAndKeepalive(RR,_now,AF_INET6)) {
+ if (p->doPingAndKeepalive(_now,AF_INET6)) {
needToContactIndirect = false;
} else {
if (stableEndpoint6) {
needToContactIndirect = false;
- p->sendHELLO(RR,InetAddress(),stableEndpoint6,_now);
+ p->sendHELLO(InetAddress(),stableEndpoint6,_now);
}
}
@@ -273,7 +273,7 @@ public:
lastReceiveFromUpstream = std::max(p->lastReceive(),lastReceiveFromUpstream);
} else if (p->activelyTransferringFrames(_now)) {
// Normal nodes get their preferred link kept alive if the node has generated frame traffic recently
- p->doPingAndKeepalive(RR,_now,0);
+ p->doPingAndKeepalive(_now,0);
}
}