summaryrefslogtreecommitdiff
path: root/node/Network.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-06-26 12:36:45 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-06-26 12:36:45 -0700
commit57c7992c785ab2f69fb2ddffd6f48bfebd96cab8 (patch)
treea3cf773ae17f9593c4787198bc17d9347ae9fe06 /node/Network.cpp
parentc287ae4d1d0cb6448e556dda2c5c98eee4898cfe (diff)
downloadinfinitytier-57c7992c785ab2f69fb2ddffd6f48bfebd96cab8.tar.gz
infinitytier-57c7992c785ab2f69fb2ddffd6f48bfebd96cab8.zip
GitHub issue #191 - kill intra-network multicast rate limits (which were not well supported or easily configurable anyway) -- this is really left over from the old collaborative multicast propagation algorithm. New algorithm (in for a while) has been sender-side replication in which sender "pays" all bandwidth, which intrinsically limits multicast.
Diffstat (limited to 'node/Network.cpp')
-rw-r--r--node/Network.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/node/Network.cpp b/node/Network.cpp
index a217595a..d5dc7d58 100644
--- a/node/Network.cpp
+++ b/node/Network.cpp
@@ -357,20 +357,6 @@ void Network::clean()
}
}
-bool Network::updateAndCheckMulticastBalance(const MulticastGroup &mg,unsigned int bytes)
-{
- const uint64_t now = RR->node->now();
- Mutex::Lock _l(_lock);
- if (!_config)
- return false;
- std::map< MulticastGroup,BandwidthAccount >::iterator bal(_multicastRateAccounts.find(mg));
- if (bal == _multicastRateAccounts.end()) {
- NetworkConfig::MulticastRate r(_config->multicastRate(mg));
- bal = _multicastRateAccounts.insert(std::pair< MulticastGroup,BandwidthAccount >(mg,BandwidthAccount(r.preload,r.maxBalance,r.accrual,now))).first;
- }
- return bal->second.deduct(bytes,now);
-}
-
void Network::learnBridgeRoute(const MAC &mac,const Address &addr)
{
Mutex::Lock _l(_lock);