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/Network.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'node/Network.cpp') diff --git a/node/Network.cpp b/node/Network.cpp index b9ab513d..916a7caf 100644 --- a/node/Network.cpp +++ b/node/Network.cpp @@ -159,6 +159,8 @@ SharedPtr Network::newInstance(const RuntimeEnvironment *renv,uint64_t nw->_ready = false; // disable handling of Ethernet frames during construct nw->_r = renv; nw->_tap = new EthernetTap(renv,tag,renv->identity.address().toMAC(),ZT_IF_MTU,&_CBhandleTapData,nw.ptr()); + nw->_multicastPropagationBreadth = 0; + nw->_multicastPropagationDepth = 0; memset(nw->_etWhitelist,0,sizeof(nw->_etWhitelist)); nw->_id = id; nw->_lastConfigUpdate = 0; @@ -179,6 +181,8 @@ void Network::setConfiguration(const Network::Config &conf) _configuration = conf; _myCertificate = conf.certificateOfMembership(); _mcRates = conf.multicastRates(); + _multicastPropagationBreadth = conf.multicastPropagationBreadth(); + _multicastPropagationDepth = conf.multicastPropagationDepth(); _lastConfigUpdate = Utils::now(); _tap->setIps(conf.staticAddresses()); -- cgit v1.2.3