summaryrefslogtreecommitdiff
path: root/node/Network.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2013-09-17 16:11:57 -0400
committerAdam Ierymenko <adam.ierymenko@gmail.com>2013-09-17 16:11:57 -0400
commitf9079a110ee8336a8403efe466e2a75620c95ab1 (patch)
tree887584d8d1f538f517e1564479697745a1237d90 /node/Network.cpp
parent4c06fcfc9dd0ba25ec2c50ce03f10f1d93f168f5 (diff)
downloadinfinitytier-f9079a110ee8336a8403efe466e2a75620c95ab1.tar.gz
infinitytier-f9079a110ee8336a8403efe466e2a75620c95ab1.zip
Make network multicast breadth/depth parameters configurable on a per-net basis.
Diffstat (limited to 'node/Network.cpp')
-rw-r--r--node/Network.cpp4
1 files changed, 4 insertions, 0 deletions
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> 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());