diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-10-05 10:34:25 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-10-05 10:34:25 -0700 |
| commit | ab22feba9a6e6c7e2eb3bc8ba3ecc48f19f878a0 (patch) | |
| tree | ff45aca809f4161dfd8c152f045536f0e6f220ef /node/IncomingPacket.cpp | |
| parent | 10c196df50b10c4445ef0d7205da290fc78973d2 (diff) | |
| download | infinitytier-ab22feba9a6e6c7e2eb3bc8ba3ecc48f19f878a0.tar.gz infinitytier-ab22feba9a6e6c7e2eb3bc8ba3ecc48f19f878a0.zip | |
Bump version to 1.0.0, add legacy support code to Multicaster to not send new frame to known-to-be-old peers.
Diffstat (limited to 'node/IncomingPacket.cpp')
| -rw-r--r-- | node/IncomingPacket.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/node/IncomingPacket.cpp b/node/IncomingPacket.cpp index 72ced7fa..521ca731 100644 --- a/node/IncomingPacket.cpp +++ b/node/IncomingPacket.cpp @@ -925,7 +925,7 @@ bool IncomingPacket::_doMULTICAST_GATHER(const RuntimeEnvironment *RR,const Shar outp.append(nwid); mg.mac().appendTo(outp); outp.append((uint32_t)mg.adi()); - if (RR->mc->gather(RR,peer->address(),nwid,mg,outp,gatherLimit)) { + if (RR->mc->gather(peer->address(),nwid,mg,outp,gatherLimit)) { outp.armor(peer->key(),true); _fromSock->send(_remoteAddress,outp.data(),outp.size()); } @@ -1003,7 +1003,7 @@ bool IncomingPacket::_doMULTICAST_FRAME(const RuntimeEnvironment *RR,const Share to.mac().appendTo(outp); outp.append((uint32_t)to.adi()); outp.append((unsigned char)0x01); // flag 0x01 = contains gather results - if (RR->mc->gather(RR,peer->address(),nwid,to,outp,gatherLimit)) { + if (RR->mc->gather(peer->address(),nwid,to,outp,gatherLimit)) { outp.armor(peer->key(),true); _fromSock->send(_remoteAddress,outp.data(),outp.size()); } |
