diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-10-02 11:35:37 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-10-02 11:35:37 -0700 |
| commit | 49dc47ff38ff27fd8f846a4a6354a60423376671 (patch) | |
| tree | ad07f38721f9b47cfcd488a4f22e117e9f1dd605 /node/IncomingPacket.cpp | |
| parent | dee86e2448725d4ac592816cac504e5d43fcb026 (diff) | |
| download | infinitytier-49dc47ff38ff27fd8f846a4a6354a60423376671.tar.gz infinitytier-49dc47ff38ff27fd8f846a4a6354a60423376671.zip | |
Make multicast gathering a bit smarter.
Diffstat (limited to 'node/IncomingPacket.cpp')
| -rw-r--r-- | node/IncomingPacket.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node/IncomingPacket.cpp b/node/IncomingPacket.cpp index 9d7461ca..ef45ddac 100644 --- a/node/IncomingPacket.cpp +++ b/node/IncomingPacket.cpp @@ -796,7 +796,7 @@ bool IncomingPacket::_doMULTICAST_LIKE(const RuntimeEnvironment *RR,const Shared // Iterate through 18-byte network,MAC,ADI tuples for(unsigned int ptr=ZT_PACKET_IDX_PAYLOAD;ptr<size();ptr+=18) - RR->mc->subscribe(now,at<uint64_t>(ptr),MulticastGroup(MAC(field(ptr + 8,6),6),at<uint32_t>(ptr + 14)),Address(),src); + RR->mc->add(now,at<uint64_t>(ptr),MulticastGroup(MAC(field(ptr + 8,6),6),at<uint32_t>(ptr + 14)),Address(),src); peer->receive(RR,_fromSock,_remoteAddress,hops(),packetId(),Packet::VERB_MULTICAST_LIKE,0,Packet::VERB_NOP,now); } catch (std::exception &ex) { |
