diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2019-06-25 13:42:20 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2019-06-25 13:42:20 -0700 |
commit | a019c3dd5d141d07a1554e36b6b4c942edfc4d70 (patch) | |
tree | 745e76548d3d51277bf6a42534f13d10d058ccec /node/OutboundMulticast.cpp | |
parent | a3ef9b8a15554326aaffdf14ebcf7795e5b73aff (diff) | |
download | infinitytier-a019c3dd5d141d07a1554e36b6b4c942edfc4d70.tar.gz infinitytier-a019c3dd5d141d07a1554e36b6b4c942edfc4d70.zip |
Tighten up credential push just a bit for faster up-time with older nodes, should not have significant impact on bandwidth. Also some cleanup and push direct path timing fixes.
Diffstat (limited to 'node/OutboundMulticast.cpp')
-rw-r--r-- | node/OutboundMulticast.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/node/OutboundMulticast.cpp b/node/OutboundMulticast.cpp index 5b5b726b..a162c8a5 100644 --- a/node/OutboundMulticast.cpp +++ b/node/OutboundMulticast.cpp @@ -84,13 +84,12 @@ void OutboundMulticast::init( void OutboundMulticast::sendOnly(const RuntimeEnvironment *RR,void *tPtr,const Address &toAddr) { const SharedPtr<Network> nw(RR->node->network(_nwid)); - const Address toAddr2(toAddr); uint8_t QoSBucket = 255; // Dummy value - if ((nw)&&(nw->filterOutgoingPacket(tPtr,true,RR->identity.address(),toAddr2,_macSrc,_macDest,_frameData,_frameLen,_etherType,0,QoSBucket))) { + if ((nw)&&(nw->filterOutgoingPacket(tPtr,true,RR->identity.address(),toAddr,_macSrc,_macDest,_frameData,_frameLen,_etherType,0,QoSBucket))) { + nw->pushCredentialsIfNeeded(tPtr,toAddr,RR->node->now()); _packet.newInitializationVector(); - _packet.setDestination(toAddr2); + _packet.setDestination(toAddr); RR->node->expectReplyTo(_packet.packetId()); - _tmp = _packet; RR->sw->send(tPtr,_tmp,true); } |