From e071c05f1b831ed108441e49c651d617749940d2 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Fri, 10 Oct 2014 14:59:07 -0700 Subject: 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. --- node/IncomingPacket.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'node') diff --git a/node/IncomingPacket.cpp b/node/IncomingPacket.cpp index 1846fdcb..68771daa 100644 --- a/node/IncomingPacket.cpp +++ b/node/IncomingPacket.cpp @@ -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
::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; } } -- cgit v1.2.3