From e1882b614b48bf0c2a68223b3ee2fb338dbcb8f6 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Wed, 1 Oct 2014 14:05:25 -0700 Subject: Some cleanup, Multicaster now sends multicasts as it gets additional members. --- node/Switch.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'node/Switch.cpp') diff --git a/node/Switch.cpp b/node/Switch.cpp index 50e31fdc..c254c762 100644 --- a/node/Switch.cpp +++ b/node/Switch.cpp @@ -151,9 +151,9 @@ void Switch::onLocalEthernet(const SharedPtr &network,const MAC &from,c TRACE("%s: MULTICAST %s -> %s %s %d",network->tapDeviceName().c_str(),from.toString().c_str(),mg.toString().c_str(),etherTypeName(etherType),(int)data.size()); RR->mc->send( - RR, ((!nconf->isPublic())&&(nconf->com())) ? &(nconf->com()) : (const CertificateOfMembership *)0, - network->wantMulticastGroup(mg) ? nconf->multicastLimit() : 0, + nconf->multicastLimit(), + network->wantMulticastGroup(mg) ? ZT_MULTICAST_DEFAULT_IMPLICIT_GATHER : 0, now, network->id(), mg, -- cgit v1.2.3