From 110904678275be6e26415c44ebdeee61ffa93edf Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Thu, 2 Oct 2014 13:50:37 -0700 Subject: Last steps before test: parse OK(MULTICAST_GATHER) and OK(MULTICAST_FRAME) --- node/Multicaster.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'node/Multicaster.cpp') diff --git a/node/Multicaster.cpp b/node/Multicaster.cpp index 8e3e3e29..cca9d035 100644 --- a/node/Multicaster.cpp +++ b/node/Multicaster.cpp @@ -252,8 +252,10 @@ void Multicaster::_add(uint64_t now,uint64_t nwid,MulticastGroupStatus &gs,const // Update timestamp and learnedFrom if existing for(std::vector::iterator m(gs.members.begin());m!=gs.members.end();++m) { if (m->address == member) { + // learnedFrom is NULL (zero) if we've learned this directly via MULTICAST_LIKE, at which + // point this becomes a first-order connection. if (m->learnedFrom) - m->learnedFrom = learnedFrom; // only update with indirect learnedFrom if we've never directly learned from this peer + m->learnedFrom = learnedFrom; m->timestamp = now; return; } -- cgit v1.2.3