From 939ab43ceb3f4c0b7bf6d946f55f6a8e70d8fd4e Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Fri, 26 Jan 2018 21:22:51 -0500 Subject: Do not send to origin in second buffered multicast path. --- node/OutboundMulticast.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'node/OutboundMulticast.hpp') diff --git a/node/OutboundMulticast.hpp b/node/OutboundMulticast.hpp index 836b840b..a735f52b 100644 --- a/node/OutboundMulticast.hpp +++ b/node/OutboundMulticast.hpp @@ -125,6 +125,16 @@ public: sendOnly(RR,tPtr,toAddr); } + /** + * Log an address as having been used so we will not send there in the future + * + * @param toAddr Address to log as sent + */ + inline void logAsSent(const Address &toAddr) + { + _alreadySentTo.push_back(toAddr); + } + /** * Try to send this to a given peer if it hasn't been sent to them already * -- cgit v1.2.3