From f9079a110ee8336a8403efe466e2a75620c95ab1 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 17 Sep 2013 16:11:57 -0400 Subject: Make network multicast breadth/depth parameters configurable on a per-net basis. --- node/Multicaster.hpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'node/Multicaster.hpp') diff --git a/node/Multicaster.hpp b/node/Multicaster.hpp index 77c7c532..c7e34d2f 100644 --- a/node/Multicaster.hpp +++ b/node/Multicaster.hpp @@ -52,9 +52,6 @@ #include "CMWC4096.hpp" #include "C25519.hpp" -// Maximum sample size to pick during choice of multicast propagation peers -#define ZT_MULTICAST_PICK_MAX_SAMPLE_SIZE (ZT_MULTICAST_PROPAGATION_BREADTH * 8) - namespace ZeroTier { /** @@ -253,7 +250,7 @@ public: Mutex::Lock _l(_multicastMemberships_m); std::map< MulticastChannel,std::vector >::iterator mm(_multicastMemberships.find(MulticastChannel(nwid,mg))); if ((mm != _multicastMemberships.end())&&(!mm->second.empty())) { - for(unsigned int stries=0;((striessecond[prng.next32() % mm->second.size()]; unsigned int sum = m.first.sum(); if ( @@ -320,7 +317,7 @@ public: Mutex::Lock _l(_multicastMemberships_m); std::map< MulticastChannel,std::vector >::iterator mm(_multicastMemberships.find(MulticastChannel(nwid,mg))); if ((mm != _multicastMemberships.end())&&(!mm->second.empty())) { - for(unsigned int stries=0;striessecond[prng.next32() % mm->second.size()]; if ( ((now - m.second) < ZT_MULTICAST_LIKE_EXPIRE)&& /* LIKE is not expired */ -- cgit v1.2.3