summaryrefslogtreecommitdiff
path: root/node/Multicaster.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-06-16 13:50:29 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-06-16 13:50:29 -0700
commit1d0654bd14890cfe09512a708d7628c475fc5fd7 (patch)
treed8802d4f96a0a1a4d2041134d1cd4783f794f632 /node/Multicaster.cpp
parent463442eb6f2b4d29406bbf727e8a4f11596a1eac (diff)
parenta425bbc67301bf486fe5b0aba8adb59ae791403e (diff)
downloadinfinitytier-1d0654bd14890cfe09512a708d7628c475fc5fd7.tar.gz
infinitytier-1d0654bd14890cfe09512a708d7628c475fc5fd7.zip
Merge pull request #182 from keesbos/rootserver
Renamed supernode to rootserver
Diffstat (limited to 'node/Multicaster.cpp')
-rw-r--r--node/Multicaster.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/node/Multicaster.cpp b/node/Multicaster.cpp
index 7da2b14c..0cc4fb87 100644
--- a/node/Multicaster.cpp
+++ b/node/Multicaster.cpp
@@ -216,7 +216,7 @@ void Multicaster::send(
if ((now - gs.lastExplicitGather) >= ZT_MULTICAST_EXPLICIT_GATHER_DELAY) {
gs.lastExplicitGather = now;
- SharedPtr<Peer> sn(RR->topology->getBestSupernode());
+ SharedPtr<Peer> sn(RR->topology->getBestRootserver());
if (sn) {
TRACE(">>MC upstream GATHER up to %u for group %.16llx/%s",gatherLimit,nwid,mg.toString().c_str());
@@ -271,12 +271,12 @@ void Multicaster::send(
delete [] indexes;
#ifdef ZT_SUPPORT_LEGACY_MULTICAST
- // This sends a P5 multicast up to our supernode, who then
+ // This sends a P5 multicast up to our rootserver, who then
// redistributes it manually down to all <1.0.0 peers for
// legacy support. These peers don't support the new multicast
// frame type, so even if they receive it they will ignore it.
{
- SharedPtr<Peer> sn(RR->topology->getBestSupernode());
+ SharedPtr<Peer> sn(RR->topology->getBestRootserver());
if (sn) {
uint32_t rn = RR->prng->next32();
Packet outp(sn->address(),RR->identity.address(),Packet::VERB_P5_MULTICAST_FRAME);