diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-09-26 17:45:19 -0400 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-09-26 17:45:19 -0400 |
| commit | 4e010da54b3d660376e4d583a2ca3e8befd60899 (patch) | |
| tree | ffcd242ca205bb351556b7ba6e24232451042ccc /node/Network.hpp | |
| parent | 24bad9f3d1119c4bf80e28f33d4241c7e6221877 (diff) | |
| download | infinitytier-4e010da54b3d660376e4d583a2ca3e8befd60899.tar.gz infinitytier-4e010da54b3d660376e4d583a2ca3e8befd60899.zip | |
Work in progress...
Diffstat (limited to 'node/Network.hpp')
| -rw-r--r-- | node/Network.hpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/node/Network.hpp b/node/Network.hpp index 993ee6a6..2ed70504 100644 --- a/node/Network.hpp +++ b/node/Network.hpp @@ -52,8 +52,6 @@ #include "InetAddress.hpp" #include "BandwidthAccount.hpp" -#define ZT_NETWORK_MULTICAST_DEDUP_HISTORY_LENGTH 256 - namespace ZeroTier { class RuntimeEnvironment; @@ -586,27 +584,6 @@ public: } /** - * Multicast deduplicator - * - * This checks to see if a multicast GUID has been seen before. If not, it - * adds it to the history and returns false. - * - * @param mcGuid Multicast GUID (sender address + sender unique ID) - * @return True if multicast IS a duplicate, false otherwise - */ - inline bool multicastDeduplicate(uint64_t mcGuid) - throw() - { - Mutex::Lock _l(_lock); - for(unsigned int i=0;i<ZT_NETWORK_MULTICAST_DEDUP_HISTORY_LENGTH;++i) { - if (_multicastHistory[i] == mcGuid) - return true; - } - _multicastHistory[_multicastHistoryPtr++ % ZT_NETWORK_MULTICAST_DEDUP_HISTORY_LENGTH] = mcGuid; - return false; - } - - /** * @return True if this network allows bridging */ inline bool permitsBridging() const @@ -621,10 +598,6 @@ private: const RuntimeEnvironment *_r; - // Ring buffer of most recently injected multicast packet GUIDs - uint64_t _multicastHistory[ZT_NETWORK_MULTICAST_DEDUP_HISTORY_LENGTH]; - unsigned int _multicastHistoryPtr; - // Multicast bandwidth accounting for peers on this network std::map< std::pair<Address,MulticastGroup>,BandwidthAccount > _multicastRateAccounts; |
