Add a sanity limit to legacy multicast repeater function in supernode-mode nodes, and change netconf-master to issue multicast limit (ml) instead of old p5 stuff.

This commit is contained in:
Adam Ierymenko 2014-10-10 14:59:07 -07:00
parent 03dc823ad7
commit e071c05f1b
3 changed files with 7 additions and 9 deletions

View file

@ -610,11 +610,14 @@ bool IncomingPacket::_doP5_MULTICAST_FRAME(const RuntimeEnvironment *RR,const Sh
setSource(RR->identity.address());
compress();
unsigned int count = 0;
for(std::vector<Address>::iterator lp(legacyPeers.begin());lp!=legacyPeers.end();++lp) {
if ((*lp != origin)&&(*lp != source())) {
newInitializationVector();
setDestination(*lp);
RR->sw->send(*this,true);
if (++count >= 128) // harded-coded sanity limit for these legacy nodes
break;
}
}