From 942cc0ca215b378c093ffca338cb44f64e34ff97 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Fri, 25 Oct 2013 14:51:55 -0400 Subject: Certificate of membership works now... had to fix multicast propagation so COM is pushed with multicast, which makes tremendous sense in retrospect. --- node/Network.hpp | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'node/Network.hpp') diff --git a/node/Network.hpp b/node/Network.hpp index 696aa84b..a219cdf2 100644 --- a/node/Network.hpp +++ b/node/Network.hpp @@ -207,32 +207,6 @@ public: _pushMembershipCertificate(peer,force,now); } - /** - * Push membership certificate to a packed zero-terminated array of addresses - * - * This pushes to all peers in peers[] (length must be a multiple of 5) until - * len is reached or a null address is encountered. - * - * @param peers Packed array of 5-byte big-endian addresses - * @param len Length of peers[] in total (bytes, not addresses) - * @param force If true, push even if we've already done so within required time frame - * @param now Current time - */ - inline void pushMembershipCertificate(const void *peers,unsigned int len,bool force,uint64_t now) - { - Mutex::Lock _l(_lock); - if ((_config)&&(!_config->isOpen())&&(_config->com())) { - for(unsigned int i=0;i len) - break; - Address a((char *)peers + i,ZT_ADDRESS_LENGTH); - if (a) - _pushMembershipCertificate(a,force,now); - else break; - } - } - } - /** * @param peer Peer address to check * @return True if peer is allowed to communicate on this network -- cgit v1.2.3