diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-10-01 14:05:25 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-10-01 14:05:25 -0700 |
| commit | e1882b614b48bf0c2a68223b3ee2fb338dbcb8f6 (patch) | |
| tree | 2447fa648e910c6ef9aa8d4b3147606b2bc18e91 /node/Switch.cpp | |
| parent | ae082c3cb8a1ba7f8efb95ce690b012ffa7a79cd (diff) | |
| download | infinitytier-e1882b614b48bf0c2a68223b3ee2fb338dbcb8f6.tar.gz infinitytier-e1882b614b48bf0c2a68223b3ee2fb338dbcb8f6.zip | |
Some cleanup, Multicaster now sends multicasts as it gets additional members.
Diffstat (limited to 'node/Switch.cpp')
| -rw-r--r-- | node/Switch.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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> &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, |
