Last steps before test: parse OK(MULTICAST_GATHER) and OK(MULTICAST_FRAME)

This commit is contained in:
Adam Ierymenko 2014-10-02 13:50:37 -07:00
parent 49dc47ff38
commit 1109046782
4 changed files with 45 additions and 1 deletions

View file

@ -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<MulticastGroupMember>::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;
}