Browse Source

More stack->heap

pull/2/head
Adam Ierymenko 7 years ago
parent
commit
b041de831a
  1. 4
      node/OutboundMulticast.cpp
  2. 2
      node/OutboundMulticast.hpp

4
node/OutboundMulticast.cpp

@ -91,8 +91,8 @@ void OutboundMulticast::sendOnly(const RuntimeEnvironment *RR,void *tPtr,const A
_packet.setDestination(toAddr2);
RR->node->expectReplyTo(_packet.packetId());
Packet tmp(_packet); // make a copy of packet so as not to garble the original -- GitHub issue #461
RR->sw->send(tPtr,tmp,true);
_tmp = _packet;
RR->sw->send(tPtr,_tmp,true);
}
}

2
node/OutboundMulticast.hpp

@ -161,7 +161,7 @@ private:
unsigned int _limit;
unsigned int _frameLen;
unsigned int _etherType;
Packet _packet;
Packet _packet,_tmp;
std::vector<Address> _alreadySentTo;
uint8_t _frameData[ZT_MAX_MTU];
};

Loading…
Cancel
Save