mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-02-21 10:01:46 +00:00
Most of new multicast code builds... now on to packet parsing.
This commit is contained in:
parent
0778332747
commit
027060dad1
@ -91,7 +91,7 @@ SharedPtr<Network> Network::newInstance(const RuntimeEnvironment *renv,NodeConfi
|
|||||||
nw->_id = id;
|
nw->_id = id;
|
||||||
nw->_nc = nc;
|
nw->_nc = nc;
|
||||||
nw->_mac.fromAddress(renv->identity.address(),id);
|
nw->_mac.fromAddress(renv->identity.address(),id);
|
||||||
nw->_r = renv;
|
nw->RR = renv;
|
||||||
nw->_tap = (EthernetTap *)0;
|
nw->_tap = (EthernetTap *)0;
|
||||||
nw->_enabled = true;
|
nw->_enabled = true;
|
||||||
nw->_lastConfigUpdate = 0;
|
nw->_lastConfigUpdate = 0;
|
||||||
@ -318,7 +318,7 @@ void Network::clean()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
_multicastTopology.clean(now,*(RR->topology),(_config) ? _config->multicastLimit() : (unsigned int)ZT_MULTICAST_DEFAULT_LIMIT);
|
_multicaster.clean(RR,now,(_config) ? _config->multicastLimit() : (unsigned int)ZT_MULTICAST_DEFAULT_LIMIT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -343,7 +343,7 @@ void Network::_CBhandleTapData(void *arg,const MAC &from,const MAC &to,unsigned
|
|||||||
if ((!((Network *)arg)->_enabled)||(((Network *)arg)->status() != NETWORK_OK))
|
if ((!((Network *)arg)->_enabled)||(((Network *)arg)->status() != NETWORK_OK))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const RuntimeEnvironment *RR = ((Network *)arg)->_r;
|
const RuntimeEnvironment *RR = ((Network *)arg)->RR;
|
||||||
if (RR->shutdownInProgress)
|
if (RR->shutdownInProgress)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user